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

226 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho c93585c6e3 Merge branch '2.4.0' into 15-5 2017-11-08 20:16:02 +00:00
kingces95 9284aa1039 Allocate prototypical view for RetainElement (#1226) 2017-11-03 12:18:07 -07:00
Rui Marinho 26491b3e49 Merge branch '2.4.0' into 15-5 2017-11-02 22:47:12 +00:00
Rui Marinho 958373ac61 [Core] Hide SetSafeAreaInsets (#1249) 2017-11-02 22:41:28 +00:00
Rui Marinho 042699447a [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:07:49 -07:00
Rui Marinho ff2d5676ad [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-25 12:17:59 -07:00
Samantha Houts a327f471a1 [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-25 12:16:50 -07:00
Stephane Delcroix 2a5074f7ad
[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-19 11:51:49 +02:00
Stephane Delcroix f32a6750cf
[*] Expose the Flags to the Core (#1181)
* [*] Expose the Flags to the Core

* docs

* [C] Hide Device.Flags
2017-10-19 11:51:34 +02:00
Stephane Delcroix 72fd2eef5f
[*] Expose the Flags to the Core (#1181)
* [*] Expose the Flags to the Core

* docs

* [C] Hide Device.Flags
2017-10-18 17:16:12 +02:00
Stephane Delcroix 59d9171a51
[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:17:24 +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
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
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 f7d8cff6ae Add iOS prototypical cell cache for LV RowHeight calcs (#1143) 2017-09-16 15:13:02 +01:00
kingces95 d4480b2e48 Add iOS prototypical cell cache for LV RowHeight calcs (#1143) 2017-09-16 15:10:04 +01:00
Samantha Houts c2f6a9c16c [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-09-14 17:50:28 -07: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
Stephane Delcroix 28a878d14f
[test] add passing test for 56852 2017-06-14 09:33:36 +02:00
Stephane Delcroix 3a0aa90164 [C] reset children animation on repeat (#974) 2017-06-08 20:38:45 +02:00
Stephane Delcroix 54322b98b4 [C] use defaultValueCreator to set Frame default Padding (#943)
* [C] use defaultValueCreator to set Frame default Padding

* [docs] update docs

* change to internal

* fix docs
2017-06-01 09:53:11 +02:00
Stephane Delcroix 5adab7fe4e [C] use picker creation date as default Date (#944)
* [C] use picker creation date as default Date

* fix test
2017-06-01 09:33:38 +02:00
kingces95 609a12adef Fix bz56030; DynamicResource overriding (#924)
* Fix bz56030; DynamicResource overriding

* add comment about KVP 'inversion'
2017-05-26 12:31:55 +01:00
E.Z. Hart b3f6d80a1b Remove VisualElement finalizer (#918)
* [Controls] Add repo for bugzilla 55365

* Remove finalizer from VisualElement

* Remove unused using directive

* Removing test for 44074

* Update docs
2017-05-16 10:27:41 -07:00
Stephane Delcroix a0801dc345 [C] fix BP declaring Types for A11y (#913) 2017-05-10 11:07:37 -07:00
Samantha Houts 4e83b8ee0f [All] Rename Accessibility -> AutomationProperties (#912)
* [All] Renamed Accessibility -> AutomationProperties

* Update docs

* Restore doc summaries

* Revert unintended csproj changes
2017-05-10 18:20:57 +01:00
Samantha Houts c1fbfae03c [Core] Accessibility works with XamlC (#911)
* Add unit tests for a11y XAML parsing

* [Core] Add Get/Set methods for XamlC

* Update docs

* Fix rogue blank line
2017-05-10 08:50:20 +02:00
Stephane Delcroix f1e7463fa8 [C] use the FromRgb[a] overload taking ints, not doubles 2017-05-05 09:49:04 +02:00
Miguel de Icaza c186b088eb Avoid using string.format to parse hex values, improves performance by 25x, and avoids creating GC junk 2017-05-05 09:49:04 +02:00
Rui Marinho 5518d3fbaf Fix bugzilla55542 (#898)
* [Controls] Add repo for bugzilla 55542

* [Core] Fix caching null renderer for ViewCell view
2017-05-04 15:27:30 +01:00
Stephane Delcroix 8af6f3eb5c [Xaml] move ValueConverterProvider to Core (#890)
* [Xaml] move ValueConverterProvider to Core

* [docs] fix docs
2017-04-28 12:11:38 -07:00
E.Z. Hart cdc4055128 Better error handling for image loading errors on iOS/Android (#849)
* First run at removing async void image update methods

Consistent error logging and IsLoading on Android,iOS,UWP

Move error logging into image handlers for better messages

Add demo of custom ImageRenderer error handling

Update docs

Make the test smaller so the results don't get pushed offscreen

Fix namespace error

* Update error handling for fast image renderer

* Update 37625 test to use image we control

* Add java disposed check to avoid ObjectDisposedException in async operations

* Add disposed checks to legacy renderer; null check element before SetIsLoading

* Check disposed on GetDesiredSize for fast renderer
Use local disposed member where possible for disposed check

* Check for disposal after async handlers in iOS

* Add disposal checks after async methods in Windows

* Reset linker settings on project; reduce redundant casts in ImageViewExtensions
2017-04-25 19:16:25 +01:00
Stephane Delcroix 9b49e3f1c1 [Xaml] OnPlatform.Default value (#873)
* [Xaml] OnPlatform.Default value

* docs
2017-04-25 11:06:29 -07:00