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

90 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho b74d545fc1
[All] Move to netstandard2.0 **Breaking change** (#1306)
* Move to netstandard 2.0

* Fix docs

* Small fixes
2017-11-29 17:37:06 +00:00
Rui Marinho 5a60f17e47
[Win] Remove Windows 8.1 platforms **Breaking change** (#1267)
* [Platforms]Remove WP8.0 and WinRT

* Update submodule

* [UWP] Fix maps UWP

* [UWP] Remove more stuff from old windows platforms

* [Docs] Update docs
2017-11-27 15:14:01 +00:00
Stephane Delcroix 4c8f901e23
Lazy creation of ResourceDictionaries (#1295)
* [C,Xaml] allow implicit ResourceDictionaries

* [XamlC] implicit ResourceDictionaries

* [C] lazy Resources creation

* fix stupid docs

* [C] no need to trigger events on initial get
2017-11-22 12:59:55 +01:00
Stephane Delcroix 0714a189e5
[C] do not reapply a Binding with a Source when the Context changes (#983)
* [C] do not reapply a Binding with a Source when the Context changes

* apply the same to typedBindings

* [C] Use a flag to Apply()

* [C] Remove 2 other unnecessary Binding refreshs
2017-11-21 13:59:41 +01:00
Stephane Delcroix 58de692dc6
[Tests] make sure the test pass even if the locale is wrongly implemented on the platform (#1292) 2017-11-20 09:46:50 +01: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
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
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
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
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
Kangho 171fa0faec Remove InternalsVisibleTo from Maps (#1019) 2017-07-24 16:23:14 -04:00
Rui Marinho 50b051cf89 [Tests] Add nunit test adapter (#1038)
* [Tests] Add nunit test adapter

* [Tests] Add nunit vs adapter to Xaml and Pages unit tests project

* [Tests] See if this works for TestSource

* [vsts] Add ignore for now on generic tests
2017-07-06 23:29:03 +01:00
E.Z. Hart 318b50aa75
Use built-in Nunit method for waiting;
Avoid problems with Assert.Success throwing exception on wrong thread
2017-06-27 10:34:59 -06:00
E.Z. Hart d308479def
Fix (hopefully) for occasional failures in PropertyChangeBindingsOccurThroughMainThread test 2017-06-26 16:17:55 -06:00
kingces95 9940fc261e Breaking; Make Grid.AddHz/Vt span ortho dim (#984) 2017-06-22 18:36:52 -04:00
Stephane Delcroix ded7d4e17b
[test] passing test for 32896 2017-06-21 15:31:44 +02: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 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
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
E.Z. Hart a0affaafbd Update ListProxyTest.WeakToWeak so it works in Release mode (#866)
* Update ListProxyTest.WeakToWeak so it works in Release mode

* Disable CS0414 for test
2017-04-13 15:40:05 +01:00
Rui Marinho 811b9bc567
[Test]Ignore Weak reference test, failing only on release 2017-04-12 19:04:55 +01:00
Stephane Delcroix d3cc1b5651 [C] Lookup in RD also lookup in merged RDs (#861) 2017-04-11 11:09:06 -07:00
kingces95 093a4efa2d Implicit impl of controller ifaces (#807)
* Simplify ICtrl callsites

* Rebase fix
2017-04-11 19:02:06 +01:00
Stephane Delcroix 5ea000a76d [Xaml] Set the TargetProperty on ServiceProvider (#847) 2017-04-07 09:48:17 +02:00
Stephane Delcroix 0ee636003b Fix 54334 (#855)
* [C] unset the FromStyle flag on manual setting

* [C] Do not reset overriden values to default

* complete the fix
2017-04-06 14:13:49 -07:00
Shane Neuville 377d24fd05 Setup a ConditionalWeakTable in ListProxy to hold weak references so that a ListView will work when connected to a Weak Source (#802) 2017-03-24 11:58:28 -07:00
wplong11 f98e1525c1 [Core] Fix internal children clear logic (#820)
* Fix InternalChildren clear logic

* Improve InternalChildren clear logic

* Add test code to verify InternalChildren clear logic

* Add missing test cases

* Improve time complexity of clear logic

* Fix the test case where InvalidOperationException occurs.

* Correct the name casing of the test case

* Modify a wrong test code
2017-03-20 12:06:20 +00:00
kingces95 e6d5186c8a Remove InternalsVisibleTo from Core to XF.Platforms.* (#782)
* Remove InternalsVisibleTo from Core to XF.Platforms.*

* Changes per Jason's code review

* Move LockableObservableListWrapper to internals namespace

* Changes per Stephane's code review

* update docs

* Touch code to get CI to run tests

* Rebase; Update documentation
2017-03-07 14:56:24 -05:00
Stephane Delcroix d2708bbadd [Xaml] Fallback to App.Current for DynResources (Previewer) (#793)
* [Xaml] Fallback to App.Current for DynResources (Previewer)

* [C] avoid NRE and ensure setting the style
2017-03-02 23:28:37 +01:00
Stephane Delcroix 837929478e [C] support more color format in ColorTypeConverter (#784)
* [C] support more color format in ColorTypeConverter

* [C] Parse numbers in InvariantCulture

* more tests
2017-03-01 10:45:26 -08:00
E.Z. Hart caa8882ff2 Split Windows RuntimePlatform into UWP and WinRT (#748)
* Split RuntimePlatform Windows into UWP and WinRT

* Update docs

* Backward compatible targetPlatform=Windows for native XAML views on WinRT/UWP
2017-02-17 10:43:26 +00:00
Philippe Leybaert 01a56f9836 Update RelativeLayout to make it respond to constraint changes (#425)
* Update RelativeLayout to make it respond to constraint changes

Constraints of a RelativeLayout are bindable properties but the layout
does not update when the constraints are updated.

This change will invalidate the layout whenever  XConstraint,
YConstraint, WidthConstraint or HeightConstraint is changed (either in
code or through a change in the bound property)

* Specified changed handler as named property

* Adding attached property accessors for layout properties

Since the constraint attached properties can now be updated at runtime,
setters are required for those properties. Also, when adding a child
view at runtime using the Add() method with x/y/w/h constraints,
generating the bounds constraints is deferred to the layout phase.

* Unit tests for runtime constraints updates in RelativeLayout

* Rename unit test method

Rename LayoutChangesAtRuntim() to LayoutIsUpdatedWhenConstraintsChange()

* Wrap RelativeLayout update setters in BatchBegin/Commit

* Update documentation of RelativeLayout

Added SetXConstraint(), SetYConstraint(), SetWidthConstraint() and
SetHeightConstraint()
2017-02-02 13:55:54 -05:00
Kangho 9a6c9a0896 Add pressed and released events to Button (#446)
* Add pressed and released events to Button

* Update ButtonRenderer.cs

* Apply safely casting to android button renderer

* Use safety casting for Android buttin renderer

* [Windows] Fix modal pages being laid out below soft buttons (#395)

* Add sample HanselForms and TwitterDemo to ControlGallery (#651)

* [Controls] Add Hanselforms sample

* Remove extra twitter sample

* [Controls]Add TwitterDemo sample

* [Controls] Fix build

* Slider should show user-set value on initial load (#378)

* [UWP] Use toolbar foreground color on primary items (#640)

* Avoid duplicating code in OmPlatform (#591)

* [iOS] Entry should not pass a newline to the next responder (#397)

* UITextField should not return so that the next field does not get passed a newline

* Added code sample

* [XamlC] import members on x:Static and factories (#642)

* [Xaml] support short Properties for PropertyCondition (#645)

* Xamlc compile data triggers (#648)

* [Xaml] DataTrigger and PropertyCondition no longer use a ServiceProvider

* [XamlC] avoid generating ServiceProvider for unused ProvideValue

* fix tests

* Fix comment typo

* [UWP] Fix TextBox style for foreground focus color (#618)

* Adding image to use for CellsGalleryImageUrlCellList UI test

* Update ImageCellListPage to use an image we control;
Update CellsGalleryImageUrlCellList test to wait longer than 1s for images
to load if necessary

* fix nre when changing content in datepickerselected (#494)

* Make CellsGalleryImageUrlCellList test finish early if possible

* [iOS] Change keyboard type while keyboard is visible (#443)

* Change keyboard while changing text

* add sample code

* [Android] Fix NavigationPage dispose crash when it parents a MasterDetailPage (#577)

* fix navigation page dispose crash

* changes after review

* [XamlC] detect duplicate x:Name at compile time (#655)

* [XamlC] detect duplicate x:Name at compile time

* invoking methods with the right arguments produces better results

* Make UWP toolbar display rules consistent with other platforms (#638)

* Allow subscriber to be collected if MessagingCenter is the only reference to it (#617)

* Repro

* Make messaging center callbacks weak references

* Preserve attribute

* Fix test method name

* Watch for collection of actual delegate target instead of wrapper delegate

* Preserve the original platform instance when changing main page

* Better tests for lambda situations

* Update tests, make callback target a weakreference if it's the subscriber

* Ensure old Platform MessagingCenter subs are gone before creating new Platform

* [iOS] Prevent multiple ListView cells from being swiped simultaneously (#578)

* disable multiple cell swipe

* add sample code

* refactored

* convert to weakreference

* remove null setting

* change weakreference setting place

* remove if

* revert isopen changes

* add instructions

* [WinRT/UWP] Apply BackgroundColor to Stepper buttons (#581)

* [WinRT/UWP] Apply BackgroundColor to Stepper buttons

* Add explanatory text; use nameof

* Move explanatory text to a label

* Return group instead of internal class (#461)

* [iOS/Android] Move Map camera to correct region on layout change (#548)

* Move to region on layout change

* remove visibility check

* [iOS] Platform specifics for controlling Picker SelectedIndex change behavior (#540)

* picker selected index could change when picker view is dismissed

* use enum

* [iOS] Ignore intermittent failing test on XTC (#666)

* [UITest] Update to UITest 2.0.5 (#665)

* Rebase the current branch onto upstream latest
2017-02-02 18:23:31 +00:00
adrianknight89 070f1dcdb5 [Core] Added RootPage to NavigationPage (#464)
* d

* removed whitespace

* Using ArgumentNullException

* changes
2017-02-02 15:35:23 +00:00
Stephane Delcroix 8d4e38a86f [C] throw meaningful exception on duplicate RD key (#716) 2017-02-01 12:17:15 -08:00
E.Z. Hart b4fe4e0c90 Make MessagingCenter testable (#723)
* Make MessagingCenter testable

* Eagerly create MessagingCenter instancef

* More succinct version
2017-01-31 13:10:28 +00:00
E.Z. Hart ebb24b7edd Fix overeager subscription cleanup (#712) 2017-01-24 22:25:44 +00:00
E.Z. Hart 500ac6ee80 Add default parameter value of zero to INavigationPageController.Peek() (#708) 2017-01-23 22:55:03 +00:00
E.Z. Hart 2c56d6211d Reduce overhead of pushing existing navigation stack (#672)
* Make StackCopy less awkward

* Clean up comment

* Update docs

* Update docs

* Replace SecondToLast with an arbitrarily deep Peek method

* Update docs

* Handle negative depths in Peek()
2017-01-23 12:42:38 -07:00
E.Z. Hart ec8bcd443a
Fix test failures in Release mode 2017-01-12 16:33:21 -07:00
Stephane Delcroix b6cb64e493 [C] new OnPlatform mechanism (#658)
* [C] Obsolete TargetPlatform

* [Xaml] support and test the new syntax

* blind fix windows platforms
2017-01-12 12:05:41 -08:00
adrianknight89 f78b328759 iOS and Android timers should be runnable from any thread and execute… (#374)
* iOS and Android timers should be runnable from any thread and executed on the main thread

* removing unused Timer class declarations with minor refactoring efforts

* iOS and Android timers should be runnable from any thread and executed on the main thread

* removing bak file

* switch to v7

* add test code
2017-01-10 16:07:01 -08:00
E.Z. Hart 58909e205a Allow subscriber to be collected if MessagingCenter is the only reference to it (#617)
* Repro

* Make messaging center callbacks weak references

* Preserve attribute

* Fix test method name

* Watch for collection of actual delegate target instead of wrapper delegate

* Preserve the original platform instance when changing main page

* Better tests for lambda situations

* Update tests, make callback target a weakreference if it's the subscriber

* Ensure old Platform MessagingCenter subs are gone before creating new Platform
2017-01-03 12:02:10 +00:00