Граф коммитов

241 Коммитов

Автор SHA1 Сообщение Дата
Stephane Delcroix 7298c9765b
[C] fix an issue with netstnadard when context type is object (#1282) 2017-11-18 07:44:54 +01:00
Stephane Delcroix 016bd546cb
[Xaml] decorate TypeConverter for additional check (#909) 2017-11-16 20:15:43 +01:00
Stephane Delcroix 20ef50d1d3
[C] unify Padding into IPaddingElement (#1276) 2017-11-15 14:53:02 +01:00
Stephane Delcroix 836327b94c
[Xaml[C]] route loading of RD through ResourceLoader (#1271)
* [Xaml[C]] route loading of RD through ResourceLoader

* [docs] fix docs
2017-11-14 15:26:05 +01:00
Stephane Delcroix 4ec1bbb978
[C] unify HorizontalTextAlignmentProperty (#1269) 2017-11-14 09:37:06 +01:00
Stephane Delcroix 4ad4ff7793
Allow specifying AutomationProperties.LabeledBy by name (#914)
* [Xaml] convert strings to x:Refs

* [docs] fix docs
2017-11-13 10:33:57 +01:00
Rui Marinho 130457123d Merge branch 'gtk-merge' 2017-11-10 15:30:04 +00:00
Samantha Houts d3d59ee4f0 [All] Basic Right-To-Left Support (#1222)
* Restart RTL work

* Remove IsInherited flag as it never got used

* [Core] Unit tests

* [Core] FlowDirection

* Add FlowDirectionGallery

* Android gallery supports RTL

Need to set minSdkVersion to 17 to test

* iOS gallery supports RTL

* UWP gallery supports RTL

* [Android] Implement FlowDirection

* [iOS] Implement FlowDirection

* [macOS] Implement FlowDirection

* [UWP] Implement FlowDirection

* Update docs

* [Core] Simplify EffectiveFlowDirection enum & expose helper extensions

Also, TEST TEST TEST

* Update docs
2017-11-09 14:31:15 +00:00
Jason Smith fe8c4c915a Fix merge 2017-11-08 11:16:01 -08:00
Stephane Delcroix 93c997ec89
[Xaml] fix loading RD without codebehind (#1257) 2017-11-08 15:23:28 +01:00
kingces95 54cddbc614 Allocate prototypical view for RetainElement (#1226) 2017-11-03 19:16:17 +00:00
Stephane Delcroix 43143bd10f
[Xaml[C]] ResourceDictionary.Source (#1229)
* [Xaml[C]] ResourceDictionary.Source

* [Xaml[C]] update to the new XamlResourceIdAttribute

* [Xaml[C]] load RD with codebehind even when referenced through Source

* [Xaml] make sure we do not generate file:// uri

* fix typo
2017-11-03 10:22:07 +01:00
Rui Marinho c341958fb3
[Core] Hide SetSafeAreaInsets (#1249) 2017-11-02 22:23:53 +00:00
Rui Marinho 4d49e5786a [iOS] Fixes for iOS11 (#1238)
* [iOS] Add SafeArea support

* [iOS] Only apply SafeArea on iOS11 or newer

* [iOS] Handle SafeAreaInsets on ViewCell and GroupCell

* [iOS] Set page padding from safe area

* [Controls] Use SafeArea PS

* [iOS] Add platform specific for LargeTiles

* [iOS] Add LargeTitleDisplayMode platform specific for ios11

* [iOS] Fix page size when large title collapses

* [iOS] Add platform specific to expose SafeAreaInsets from iOS11

* [Controls] Large titles iOS specific gallery page

* [iOS] Remove comment code on PS example

* [Controls] Add gallery sample for Safe Area PS

* [iOS] Inside a TabbedPage safe area bottom is handle by UITabViewController

* [Core,iOS]If we are not using safearea set the padding to the default

* [iOS] Revert SafeAreas on navpage

* [iOS] Fix safe area inset for ViewCell

* [iOS] Handle ViewCell margin correctly on iOS11

* [Core,iOS] Rename to UsingSafeArea, use BPKey instead for SafeAreaInsets

* [Core,iOS] Rename to UsingLargeTitles

* [iOS,Core] Rename to PrefersLargeTitles
2017-11-02 11:04:55 -07:00
Stephane Delcroix e84fe4d649 [Xaml] create the [XamlResourceId] at assembly level (#1232)
* [Xaml] create the [XamlResourceId] at assembly level

* fix docs

* fix utility project
2017-10-27 11:43:05 +02:00
Rui Marinho 9ad100e161 [Core]Set default value for IsPresented on MacOS (#1223)
* [Core]Set default value for IsPresented on MacOS

* [Core] Use default value creator delegate for MDP isPresented
2017-10-24 22:59:01 +01:00
Stephane Delcroix c0e89187bb [Test] Make sure we always test with different Cultures (#1219)
also get rid of the 'Turkey' build configuration
2017-10-24 10:41:33 +02:00
Stephane Delcroix 376cc6bd48
Revert "[Xaml[C]] ResourceDictionary.Source"
This reverts commit 5343efb518.
2017-10-23 11:23:28 +02:00
Stephane Delcroix 5343efb518
[Xaml[C]] ResourceDictionary.Source 2017-10-23 11:04:48 +02:00
Stephane Delcroix de255a8b9e [XamlC] XamlResourceIdAttribute (#1167) 2017-10-23 10:56:23 +02:00
Samantha Houts 2903810599 [UWP] Fix ListView selection issues **Behavior change** (#1157)
* Update 44886 repro

* Add 59718 repro

* [UWP] Don't fire a click when SelectedItem changes programmatically

* Update repro for 59718

* [Core] Add Win ListView Selection mode specific

* [Win] Use ListView SelectionMode specific

* Fix test case

* [Win] ListView sets value once when clicked

* Update docs

* Fix specific methods

* Update docs again
2017-10-19 23:17:31 +01:00
yone64 4e4c8637fc Update ScrollView.cs (#1209) 2017-10-19 15:10:54 +01:00
Javier Suárez Ruiz 09098c5b78 Updated branch.
Fixed merge errors with master branch.
Updated IPlatformServices implementation
2017-10-19 13:18:07 +02:00
Javier Suárez Ruiz 6327e76242 Merge with master branch 2017-10-19 12:50:05 +02:00
Stephane Delcroix 172435c1a9 [Xaml] Chain op_implicit for OnPlatform (if needed) (#1176)
* [Xaml] Chain op_implicit for OnPlatform (if needed)

For OnPlatform<T>, if a conversion for T to the destination type exists,
first convert OnPlatform<T> to T, the T to the dest type

Also unify the way we look for op_implicit operators

* [Xaml] only apply the double opImplicit if a flag is set

* [C] allow conversion on parameter
2017-10-18 09:15:11 +02:00
Stephane Delcroix 2d5d5669f4 [*] Expose the Flags to the Core (#1181)
* [*] Expose the Flags to the Core

* docs

* [C] Hide Device.Flags
2017-10-11 16:47:50 +02:00
E.Z. Hart 3aaed1b325 [All] Page embedding (#1124)
* Fix broken SetTextAppearance call when targeting below API 23

* Enable embedding XF apps in Android

* VS didn't save the project file

* Allow retrieving rendered XF VisualElements for use in UWP apps

* Prevent XF from slaughtering the menu bar in embedded scenarios

* ?

* Post-rebase fixups

* Create embedding test project for Android

* Create iOS test bed project

* Attempting to get functional embedded project

* Android and iOS functional testbed projects

* Basic embedding app on UWP

* First pass at handling navigation to Forms page from UWP

* Fleshed out example, added parameter checks, sealed wrapper class

* Create test page and load it from UWP

* Make DisplayAlert/DisplayActionSheet independent of Platform instance on UWP

* Set up test page for alerts/actionsheets on Android

* Move DisplayAlert/ActionSheet code to a helper class so embedded Forms can use it

* VS didn't save my changes

* Add test page for alerts and action sheets

* Get FrameworkElement from renderer

* Page -> ContentPage

* Can now display the webview embedded page

* Example working on iOS

* Repro of crash

* Remove the IStartActivityForResult dependency from FormsWebChromeClient

* Created repro

* Remove need for Forms.Context to create renderers

* Remove Forms.Context dependencies in ScrollViewRenderer

* Remove Forms.Context dependencies in FrameRenderer

* Remove Forms.Context dependencies

* Remove Context/Forms.Context dependencies in Drawable subclasses

* Remove some more Forms.Context dependencies

* CellAdapter no longer dependent on Forms.Context

* Obsolete ToAndroid using Forms.Context

* Remove Forms.Context dependencies in ResourceManager

* Remove need for Forms.Context for SupportsProgress

* Remove Forms.Context dependency for setting titlebar visibility

* Remove Forms.Context dependencies in GetAccentColor

* Some comments about caching

* Remove Forms.Context dependencies for AndroidPlatformServices and ResourceProvider

* Remove Forms.Context dependencies in Maps

* Disabled warnings for Forms.Context in CustomRenderers

* Filter logs so we don't get those annoying "parked" messages

* Filter alerts/actionsheets/activityindicator by context

* Clean up constructor debugging messages

* Remove old TODOs

* Set up test page for Device.Openuri

* Make AndroidDeviceInfo more resilient to multiple activity scenarios

* Use parameter instead of member

* Add missing parameterless constructors for embedded fragment wrappers

* Fix multiple popup subscriptions for embedded context

* Remove UpdateGlobalContext and Page Context attached property

* Obsolete static reference to Context

* Warnings as errors in embedded test bed projects

* Comment cleanup

* Clean up unused code

* Obsolete old constructor for DefaultRenderer

* Make sure embedded fragment wrappers handle disposing the platform

* Revert to old DependencyService registration for ResourceProvider;
use ApplicationContext for ResourceProvider;
Comments for everything happing in Forms.SetupInit

* Remove old TODO

* Make PopupManager take the correct type instead of casting a bunch

* Update docs

* Add missing nuspec entry for FormsEmbeddedPageWrapper

* Post-rebase cleanup

* Update docs

* Disable XF target validation so package restore works

* Restore InputTransparent handling lost in rebase

* Restore parameter lost during rebase

* Finalize the list of subscriptions to avoid 'modified collection' errors

* Avoid double-fetching Context

* Fix "with you package" typo
2017-10-09 10:51:55 -07:00
Marko B. Ludolph 0abfd7e504 [MacOS] Navigation Transition Style (#1168) 2017-10-03 14:46:41 +01:00
dgeller-OUHSC afa0fb7e55 [Core, Android] Fix to address the elusive 'Sharing violation on path PropertyStore.forms.tmp' (#1075)
* use a semaphor for actual saving piece
make reading serialized propertystore readonly to help with collisions.

* change over to async Task and await OnStateChanged() method to try and mitigate what might be the race condition causing the ' Sharing violation on path PropertyStore.forms.tmp' error

* update Semaphore name

* remove private specifier per the style guide

* Update docs and add warning suppression for broken mono warning

* ... and adding the warning suppression to Release mode, as well.

* -add try...finally block so we can guarantee that the semaphore is released if there's an exception while saving the properties.
-remove the legacy code that the semaphore replaces

* Update docs

* Attempting to fix docs

* Trying again to get docs to pass
2017-10-03 11:23:32 +01:00
Rui Marinho 9f24a41c2d [Core,MacOS]Desktop support (#1126)
* [Controls] Improve sample for MacOS control gallery, add a storyboard for the menu

* [Core] Add QuitApp to platform services

* [Core] Add ClickedGestureREcognizer

* [MacOS] Implement ClickGestureRecognizer

* [Core] Add MainMenu

* [MacOS] Implement Main top menu

* [Controls] Add desktop support test page

* [MacOS] Update menu items if they change

* [MacOS] Refactor to make it build for iOS

* [Core] Add Menu attached property to Element

* [MacOS] Implement MacOS context menu

* [Core] Fix type of ADP

* [Core] Add Accelerators to MenuItem

* [ControlGallery] Add example for Accelerator MenuItems

* [Core,iOS] Update ClickedEventArgs to ButtonMask enum  

* [Docs] Update docs

* [Core]Fix build error

* [WP8] Implement QuitApp

* [WP8] Log warning instead of throw

* [Tests]  Add unit tests for menu and menuitem

* [Docs]Update docs

* Update build submodule

* [Core,MacOS,Docs] Use Attached Property for MainMenu

* [Core] Update ButtonsMask, reduce calls to GetValue getting parameter

* [All] Use Accelerator class

* [Core] Add tests for accelerator

* [All] Move QuitApp to QuitApplication

* [Core, Tests] Add more tests for Accelerator

* [Core]Parse win modifier also

* [UnitTests] Fix TestCaseSource

* [MacOS,Core] Fix typo on Modifiers

* [MacOS] Fix typo

* [WinRT] Fix build

* [Docs] Update docs
2017-10-02 18:19:26 +01:00
Javier Suárez Ruiz 1cb7f7a867 Changed native cell controls to become internal classes. 2017-09-29 19:31:09 +02:00
Stephane Delcroix 4feaf14c55 [XamlC] Compiled UriTypeConverter (#1166) 2017-09-29 09:04:27 +02:00
Frank A. Krueger e8660383b0 [All] Use IReflectableType when accessing the Registrar (#1006)
* [Core] Add GetHandlerForObject and GetHandlerTypeForObject to Registrar

These new methods first try to use IReflectableType in order to support
dynamic objects. If that fails, GetType is used.

* [Platforms] Switch to query the Registrar using GetHandlerForObject

This enables dynamic objects to be used as renderers and other
points of extensibility.

* Take into account dynamic type info when comparing cell renderers

* Fix null renderer object type

* Update Registrar`1.xml

* Update Registrar`1.xml
2017-09-28 16:35:28 +02:00
Javier Suárez Ruiz 8e41144700 Xamarin.Forms.Platform.GTK 2017-09-28 13:52:27 +02:00
E.Z. Hart 210df5f775 [Android] Add platform specific for Elevation (#1158)
* Simple Elevation implementation for BoxView

* More generic version

* Simplify the code a bit

* Add IElementConfiguration<T> to the descendants of Layout<View>

* Add Elevation support to everything on Android; update UI tests;

* Update docs
2017-09-26 11:14:41 +01:00
Stephane Delcroix 7d90f145b7 [C] MergedRD: new tests and minor fixes 2017-09-22 13:27:47 +02:00
Adam Pedley 2b7913adda Merged Dictionaries 2017-09-22 13:27:47 +02:00
Stephane Delcroix ce4e0239fa [C] Use ReferenceEquals to compare BindingContext (#1150) 2017-09-21 10:45:49 -07:00
kingces95 d4480b2e48 Add iOS prototypical cell cache for LV RowHeight calcs (#1143) 2017-09-16 15:10:04 +01:00
Stephane Delcroix 8ee62e827e [C, iOS, Android] LayoutCompression (#1136)
* [C, iOS, Android] LayoutCompression

* fix docs

* minor fixups
2017-09-13 11:18:59 +02:00
Samantha Houts f0d407a726 [UWP] ListView ItemSelected event will fire only once on selection changed (#1005)
* Add repro for 44886

* [UWP] Fire ListItemClicked when Selection changes

This will automatically set the value on the renderer and prevent the double event from firing.

* Clean up repro

* Update test case for delection scenario

* [Core] Allow ListView item deselection

* [UWP] Send events when item is deselected, too

* Test works better when you DO something.
2017-08-17 16:59:13 +01:00
Marko B. Ludolph f0b1efbb91 [macOS] Set tab order (e.g. for entries) on a Page (#1060)
* [macOS] Add tab order (e.g. for entries) on a Page

* Return NativeView if no subviews are available
2017-07-24 17:13:21 -04:00
kingces95 4245019418 [core] Prevent canonicalization of '*.[.]' and '-0' (#1035) 2017-07-24 16:47:11 -04:00
Jason Smith 78546aed89 Fix DefinitionCollection index check order (#1017) 2017-06-26 20:06:39 +01:00
juliuszint 3b11401558 Unsubscribe from IDefinition.SizeChanged event when set via indexer (#1014)
* Unsubscribe from IDefinition.SizeChanged event when set via indexer

* added bounds and null check to preserve original exception

* index check for negative values
2017-06-26 11:29:23 -07:00
kingces95 9940fc261e Breaking; Make Grid.AddHz/Vt span ortho dim (#984) 2017-06-22 18:36:52 -04:00
Stephane Delcroix f6bdb76b0a [iOS] decoupling UpdateText() on LabelRenderer (#950)
* [iOS] decoupling UpdateText() on LabelRenderer

* [iOS] do not update font and color on formattedstrings
2017-06-22 10:49:41 +01:00
Stephane Delcroix 28b343b278 [C] reset the BindingContext on template change (#998)
* [C] reset the BindingContext on template change

* fix test
2017-06-21 10:32:08 +02:00
Stephane Delcroix b7b0bf559a [iOS] workaround a weird iOS behavior. (#987) 2017-06-21 02:00:58 +01:00
kingces95 10ae30489a bug 40161; force layout of centered image in abs layout (#967) 2017-06-14 11:39:58 -04:00