platform/core/csapi/xsf.git
5 years ago[UWP] Fixes default button padding (#6455)
Pavel Yakovlev [Mon, 29 Jul 2019 23:49:18 +0000 (02:49 +0300)]
[UWP] Fixes default button padding (#6455)

fixes #6450

5 years agoCollectionView Android - Fix adapter update (#6840)
Andrei Nitescu [Mon, 29 Jul 2019 17:37:52 +0000 (20:37 +0300)]
CollectionView Android - Fix adapter update (#6840)

* CollectionView Android - Fix adapter update #6840

* Fix missing end tag

* Added APP compiler directive

* Update Issue6644.xaml.cs

fixes #6644
fixes #6839

5 years agoImplement DataTemplateSelector support for CollectionView on UWP (#6918)
E.Z. Hart [Mon, 29 Jul 2019 17:10:20 +0000 (11:10 -0600)]
Implement DataTemplateSelector support for CollectionView on UWP (#6918)

fixes #6898

5 years agoMerge branch '4.1.0' into 4.2.0
Rui Marinho [Mon, 29 Jul 2019 09:23:54 +0000 (10:23 +0100)]
Merge branch '4.1.0' into 4.2.0

5 years agoMerge branch '4.0.0' into 4.1.0
Rui Marinho [Mon, 29 Jul 2019 09:22:33 +0000 (10:22 +0100)]
Merge branch '4.0.0' into 4.1.0

5 years agoiOS - Test and fix for VoiceOver crash on a ContentPage not having any Content define...
Samantha Houts [Mon, 29 Jul 2019 09:01:24 +0000 (02:01 -0700)]
iOS - Test and fix for VoiceOver crash on a ContentPage not having any Content defined (#6987) fixes #6926

* Added test case for showing crash for issue 6926.

* Potential fix for issue 6926. Prevents a null reference exception when a ContentPage has no Content.

5 years ago[Android] add check for double dispose scrollview/page/platform (#6923)
Shane Neuville [Fri, 26 Jul 2019 07:54:10 +0000 (01:54 -0600)]
[Android] add check for double dispose scrollview/page/platform (#6923)

5 years agoAdded UpdateScreenSize call at instantiation (#6912)
Gerald Versluis [Thu, 25 Jul 2019 20:24:31 +0000 (22:24 +0200)]
Added UpdateScreenSize call at instantiation (#6912)

5 years ago[Android] Fix previewer exceptions with SearchBar (#6930) fixes #4108
Pavel Yakovlev [Thu, 25 Jul 2019 16:39:08 +0000 (19:39 +0300)]
[Android] Fix previewer exceptions with SearchBar (#6930) fixes #4108

* [Android] fixes previewer exceptions with SearchBar

* added comment

5 years ago[Android/iOS] RemainingItemsThreshold and Scrolled implementation for CollectionView...
adrianknight89 [Thu, 25 Jul 2019 13:07:28 +0000 (08:07 -0500)]
[Android/iOS] RemainingItemsThreshold and Scrolled implementation for CollectionView (#5754)

* infinite scroll capability

* remove added line

* scroll event implementation

* add offset calculation for GridLayoutManager

* removed custom layout managers

* renamed variables

* changed comment

* implement CenterItemIndex

* fixed pageSize

* removed artifact

* handle the case when the layout manager is not linear

* fix comment

* call base dispose

* code review changes

* remove unused references

* indentation fix

* fix compilation issues

* revert cleanup

* fix

* fix crash

* fix test

* fix index issue

* removed unused method

* fix

* moved private variables into app scope

* Added back UI test

* Name to AutomationID

* added command parameter and addressed minor suggestions

5 years agoFixes #6539 (#6969)
kingces95 [Thu, 25 Jul 2019 09:52:36 +0000 (23:52 -1000)]
Fixes #6539 (#6969)

5 years agoMerge branch '4.1.0' into 4.2.0
Stephane Delcroix [Tue, 23 Jul 2019 16:12:34 +0000 (18:12 +0200)]
Merge branch '4.1.0' into 4.2.0

5 years ago[Android] Fix previewer exceptions with TabbedPage (#6897)
Pavel Yakovlev [Mon, 22 Jul 2019 16:53:28 +0000 (19:53 +0300)]
[Android] Fix previewer exceptions with TabbedPage (#6897)

* [Android] Fix previewer exceptions with TabbedPage

* - consolidated code

5 years agoMerge branch '4.1.0' into 4.2.0
Rui Marinho [Sun, 21 Jul 2019 19:56:23 +0000 (20:56 +0100)]
Merge branch '4.1.0' into 4.2.0

5 years ago[iOS] Fix initial color of RefreshControl in ListViews (#6473) fixes #5728
Alan Grgic [Fri, 19 Jul 2019 10:58:59 +0000 (05:58 -0500)]
[iOS] Fix initial color of RefreshControl in ListViews (#6473) fixes #5728

* add reproduction

* make beginrefreshing occur after offset animation and ensure color is set before beginning refresh

5 years agoFix - Prevent race condition between activity create and dispose. (#6596)
Kevin Petit [Fri, 19 Jul 2019 10:50:02 +0000 (12:50 +0200)]
Fix - Prevent race condition between activity create and dispose. (#6596)

5 years agoMacOS: Allow third party libs to display animated images correctly (#6302)
Daniel Luberda [Fri, 19 Jul 2019 10:43:39 +0000 (12:43 +0200)]
MacOS: Allow third party libs to display animated images correctly (#6302)

* Mac Animated NSImage support

5 years agoAdded UITest for #2577 (#6728)
Gerald Versluis [Thu, 18 Jul 2019 11:43:27 +0000 (13:43 +0200)]
Added UITest for #2577 (#6728)

* Added UITest for issue 2577

* Added Wait statements

* Apply suggestions from code review

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* AutomationId to const

* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2577.cs

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* All strings to const

5 years agoMerge branch '4.1.0' into 4.2.0
Samantha Houts [Thu, 18 Jul 2019 03:03:30 +0000 (20:03 -0700)]
Merge branch '4.1.0' into 4.2.0

5 years agoMerge branch '4.0.0' into 4.1.0
Samantha Houts [Thu, 18 Jul 2019 02:58:30 +0000 (19:58 -0700)]
Merge branch '4.0.0' into 4.1.0

5 years ago[Bug][iOS] listview / observable collection throwing native error on load (#6576)
Gerald Versluis [Thu, 18 Jul 2019 02:49:21 +0000 (04:49 +0200)]
[Bug][iOS] listview / observable collection throwing native error on load (#6576)

* Added reproduction and commented out the misbehaving code

* Fixed merge conflicts

# Conflicts:
# Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems

* Implemented UI test

* Somehow merged in a non-existing UI test

* Removed DetermineEstimatedRowHeight in WillDisplay

* Revert "Removed DetermineEstimatedRowHeight in WillDisplay"

This reverts commit 431178d923c3bf642aae83331a5dc5b57c4436de.

* Removed WillDisplay with DetermineEstimatedRowHeight

* Reinstate projitems

* Added some more test scenarios

* Removed commented code

* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue6472.cs
fixes #6472

5 years ago[Android] refactoring fixes layouts (#6390)
Pavel Yakovlev [Thu, 18 Jul 2019 01:29:08 +0000 (04:29 +0300)]
[Android] refactoring fixes layouts (#6390)

* [Android] refactoring fixes layouts (issues 1332, 1760, 5766, 5184, 6297)

* issue3000 and ToolbarItem tests should be passes

* MaybeRequestLayout extension method

* added automated UITest 5766

* fix 5766

* fix 6297

* merge 6297 into 5766 uitest

* rename test

5 years agoImplement ItemsUpdatingScrollMode on Android and iOS (#6879)
E.Z. Hart [Tue, 16 Jul 2019 17:40:26 +0000 (11:40 -0600)]
Implement ItemsUpdatingScrollMode on Android and iOS (#6879)

5 years agotry to fix the build
Stephane Delcroix [Tue, 16 Jul 2019 10:26:33 +0000 (12:26 +0200)]
try to fix the build

5 years ago[Core] Missing await in Device.InvokeOnMainThreadAsync(Func<Task>) (#6718)
Keith Dahlby [Tue, 16 Jul 2019 07:20:10 +0000 (02:20 -0500)]
[Core] Missing await in Device.InvokeOnMainThreadAsync(Func<Task>) (#6718)

* [Core] Use local functions

* [Core] Extract DeviceUnitTests

* [Core] Ensure actually called from main thread

* [Core] Add InvokeOnMainThread tests

WithAsyncTask is expected to fail.

* [Core] Rename local wrapper functions

* [Core] Avoid ambiguous call

CS0121: The call is ambiguous between the following methods or
properties: 'Device.InvokeOnMainThreadAsync(Action)' and
'Device.InvokeOnMainThreadAsync(Func<Task>)'

https://github.com/dotnet/roslyn/issues/14885
https://github.com/dotnet/csharplang/issues/98

5 years ago [Android] Unhook WebView.EvaluateJavascriptAsync on Dispose (#6674)
Samantha Houts [Tue, 16 Jul 2019 02:17:48 +0000 (19:17 -0700)]
 [Android] Unhook WebView.EvaluateJavascriptAsync on Dispose (#6674)

* Add repro for #6286 (doesn't crash, though)

* [Android] Unhook WebView.EvaluateJavascriptAsync on Dispose
fixes #6286

5 years ago[iOS] ItemsViewLayout needs strategy on the ctor (#6690)
Rui Marinho [Mon, 15 Jul 2019 18:32:00 +0000 (19:32 +0100)]
[iOS] ItemsViewLayout needs strategy on the ctor (#6690)

5 years agoUpdate GitInfo.txt
Rui Marinho [Mon, 15 Jul 2019 18:23:27 +0000 (19:23 +0100)]
Update GitInfo.txt

5 years ago[iOS] fixes material checkbox color (#6820) fixes #6816
Pavel Yakovlev [Mon, 15 Jul 2019 17:39:21 +0000 (20:39 +0300)]
[iOS] fixes material checkbox color (#6820) fixes #6816

5 years agoFixes binding to nullable types (#6860)
Andrei Nitescu [Mon, 15 Jul 2019 11:34:54 +0000 (14:34 +0300)]
Fixes binding to nullable types  (#6860)

-fixes #6280

5 years ago[X] do not compile binding set as property values (#6837)
Stephane Delcroix [Mon, 15 Jul 2019 10:02:13 +0000 (12:02 +0200)]
[X] do not compile binding set as property values (#6837)

binding passed as properties don't have a valid datatype, so do not compile those.

- fixes #5240

5 years agoMerge branch '4.1.0' into 4.2.0
Stephane Delcroix [Fri, 12 Jul 2019 14:22:56 +0000 (16:22 +0200)]
Merge branch '4.1.0' into 4.2.0

5 years ago[HR] properly reload merged rds
Stephane Delcroix [Fri, 12 Jul 2019 13:40:16 +0000 (15:40 +0200)]
[HR] properly reload merged rds

5 years agoDon't force binding expression applications to queue (#6857)
E.Z. Hart [Fri, 12 Jul 2019 11:07:57 +0000 (05:07 -0600)]
Don't force binding expression applications to queue (#6857)

* Don't force binding expression applications to queue; fixes #6609

* Make PropertyChangeBindingsOccurThroughMainThread test what it claims to test

5 years agoAdd Scrollbar Visibility option to the CollectionView (#6602)
Ravinder Jangra [Thu, 11 Jul 2019 23:03:12 +0000 (04:33 +0530)]
Add Scrollbar Visibility option to the CollectionView (#6602)

* Add Horizontal and Vertical Scrollbar Visibility option to the CollectionView

* bump gitinfo

* make requested changes

* Add Android implementation

* use ScrollBarVisibility.Default instead of 0 and other requested changes
fixes #6053

5 years agoMerge branch '4.1.0' into 4.2.0
Samantha Houts [Thu, 11 Jul 2019 22:44:58 +0000 (15:44 -0700)]
Merge branch '4.1.0' into 4.2.0

5 years agoFixed: Button CornerRadius doesn't work in explicit style (#6753)
Mike Schwörer [Thu, 11 Jul 2019 08:52:18 +0000 (10:52 +0200)]
Fixed: Button CornerRadius doesn't work in explicit style (#6753)

- fixes #5046

* Fixed #5046 - Button CornerRadius doesn't work in explicit style

* Added Unit Test

* Requested changes from PR

* Moved UnitTest to Xamarin.Forms.Xaml.UnitTests

* Update Xamarin.Forms.Xaml.UnitTests/ButtonCornerRadius.xaml.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>
* Do not add ButtonCornerRadius in csproj

* removed dangling changes in ButtonUnitTest.cs

5 years agoAdd protected GetTemplateChild to ContentPage and ContentView #6747 (#6752)
Andrei Nitescu [Thu, 11 Jul 2019 01:35:25 +0000 (04:35 +0300)]
Add protected GetTemplateChild to ContentPage and ContentView #6747 (#6752)

fixes #6747

5 years ago[Android] Uniformize handler name (CollectionView) (#6720)
Kevin Petit [Thu, 11 Jul 2019 01:34:26 +0000 (03:34 +0200)]
[Android] Uniformize handler name (CollectionView) (#6720)

* CollectionView - Uniformize handler name.

* Address naming feedback.

* Revert BOM.

5 years agoAuto-focus next view from Entry with ReturnType.Next (#6706)
Joe Manke [Wed, 10 Jul 2019 17:18:42 +0000 (13:18 -0400)]
Auto-focus next view from Entry with ReturnType.Next (#6706)

* Automatically focus the next view after hitting the Return key on an Entry with ReturnType.Next

* UWP implementation

5 years ago[X] hide TypedBinding from Intelisense
Stephane Delcroix [Wed, 10 Jul 2019 10:18:17 +0000 (12:18 +0200)]
[X] hide TypedBinding from Intelisense

5 years agoFix Page implicit and inherited style with ControlTemplate #6657 (#6661)
Andrei Nitescu [Wed, 10 Jul 2019 02:03:16 +0000 (05:03 +0300)]
Fix Page implicit and inherited style with ControlTemplate #6657 (#6661)

* Fix Page implicit and inherited style with ControlTemplate #6657

* Update StyleTests.cs
fixes #6657

5 years ago[Android] Fix KeyNotFoundException during Shell Navigation (#6740)
Alan Grgic [Wed, 10 Jul 2019 00:24:10 +0000 (19:24 -0500)]
[Android] Fix KeyNotFoundException during Shell Navigation (#6740)

* fix android shell nav crash

* add reproduction test

* add automation and address feedback

* move fragmet creation of stack items to after switch statement

* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue6738.cs

Co-Authored-By: Shane Neuville <shane94@hotmail.com>
* [iOS] fix shell section disposals so multiple page renderers don't get assigned

5 years agoMerge branch '4.1.0' into 4.2.0
Samantha Houts [Tue, 9 Jul 2019 17:50:41 +0000 (10:50 -0700)]
Merge branch '4.1.0' into 4.2.0

5 years agoFix for Switch on Android losing shadow #6798 (#6798)
Andrei Nitescu [Mon, 8 Jul 2019 23:51:37 +0000 (02:51 +0300)]
Fix for Switch on Android losing shadow #6798 (#6798)

5 years agoReimplement ITabStop to return the EditText on Android Material renderers that use...
Joe Manke [Mon, 8 Jul 2019 23:17:05 +0000 (19:17 -0400)]
Reimplement ITabStop to return the EditText on Android Material renderers that use TextInputLayout as the native Control (#6732)

fixes #5102

5 years ago[X] Allow x:Null for x:DataType (#6822)
Stephane Delcroix [Mon, 8 Jul 2019 23:03:32 +0000 (01:03 +0200)]
[X] Allow x:Null for x:DataType (#6822)

- fixes #6648

5 years ago[Shell] Flyout TableView height fix and implement margins for Flyout Header (#6572)
Shane Neuville [Sun, 7 Jul 2019 22:08:31 +0000 (16:08 -0600)]
[Shell] Flyout TableView height fix and implement margins for Flyout Header (#6572)

* [ios] fix safeareas and use marging to offset flyout

* android fixes for margin

* [iOS] frame size and inset fixes

* android fix header offset

* Update Xamarin.Forms.Platform.iOS/Renderers/ShellTableViewController.cs

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* top offset fixes

* add mask back in for scrolling header

* fix NRE when FlyoutHeader is null

* tweak Bugzilla26993Test

5 years agoClear global routes on unit tests and process global routes in the right place (...
Shane Neuville [Sat, 6 Jul 2019 19:56:10 +0000 (13:56 -0600)]
Clear global routes on unit tests and process global routes in the right place (#6781)

* Clear global routes on unit tests and process global routes in the right place

* - route with current item in case shellSection is null

* inset ui test fix

* Fix ColorFilter for API 19

* add missing file

5 years agoFix for #6444: Propagate binding context for children of shell sections (#6730)
Christopher Dresel [Fri, 5 Jul 2019 18:29:42 +0000 (20:29 +0200)]
Fix for #6444: Propagate binding context for children of shell sections (#6730)

* Propagate binding context for children of shell sections

* Added a few more BindingContext Propagation tests

5 years agoCreate UI test template for XAML pages (#5853)
adrianknight89 [Thu, 4 Jul 2019 04:09:02 +0000 (23:09 -0500)]
Create UI test template for XAML pages (#5853)

* create template for XAML pages

* update existing template

* added BindingContext

* removed whitespace

* move BindingContext

* change class name to Issue

* fixed absolute path

5 years agoMerge branch '4.1.0'
Samantha Houts [Thu, 4 Jul 2019 03:49:49 +0000 (20:49 -0700)]
Merge branch '4.1.0'

5 years agoFix Map Gallery page (#6603)
Andrei Nitescu [Thu, 4 Jul 2019 00:31:27 +0000 (03:31 +0300)]
Fix Map Gallery page (#6603)

5 years agoMerge branch '4.1.0'
Samantha Houts [Thu, 4 Jul 2019 00:16:32 +0000 (17:16 -0700)]
Merge branch '4.1.0'

5 years agoAdd Color.ToHex() (#6272)
David Roqueni [Thu, 4 Jul 2019 00:13:01 +0000 (17:13 -0700)]
Add Color.ToHex() (#6272)

* Updated Color to have ToHex() method. Created Unit tests to ensure method is working as expected.

* Updated ToHex() use uint values. Updated unit tests for ToHex.
fixes #6003

5 years agoSwitch ThumbColor (#6312)
Andrei Nitescu [Thu, 4 Jul 2019 00:08:56 +0000 (03:08 +0300)]
Switch ThumbColor (#6312)

fixes #5415

5 years agoAdd constructor in WkWebViewRenderer to use custom configuration (#6578)
Ravinder Jangra [Thu, 4 Jul 2019 00:05:55 +0000 (05:35 +0530)]
Add constructor in WkWebViewRenderer to use custom configuration (#6578)

5 years agoMap MoveToLastRegionOnLayoutChange Property (#6601)
Andrei Nitescu [Thu, 4 Jul 2019 00:05:17 +0000 (03:05 +0300)]
Map MoveToLastRegionOnLayoutChange Property (#6601)

fixes #6222

5 years ago[UWP] fixes crash after reset corner radius (#6744)
Pavel Yakovlev [Thu, 4 Jul 2019 00:03:13 +0000 (03:03 +0300)]
[UWP] fixes crash after reset corner radius (#6744)

5 years ago[Shell] Apply Query string parameters even if they aren't present and correctly apply...
Shane Neuville [Wed, 3 Jul 2019 23:57:46 +0000 (17:57 -0600)]
[Shell] Apply Query string parameters even if they aren't present and correctly apply them to nested pages (#6695)

* apply query string parameters if they aren't there
- apply query string parameters correctly to nested pages

* Update Xamarin.Forms.Core/Shell/Shell.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>
fixes #6543

5 years agoShell lifecycle (#6527)
Shane Neuville [Wed, 3 Jul 2019 23:53:45 +0000 (17:53 -0600)]
Shell lifecycle (#6527)

* shell appearing and disappearing events

* life cycle UI tests and fixes

* - fix appearing on shell content to only fire when page gets created
- fix navigated to only fire after shell content is appearing

* OnNavigatedOnlyFiresOnce
fixes #6486

5 years agoUnhook Page from embedded Application on disposal (#6735)
E.Z. Hart [Wed, 3 Jul 2019 23:46:47 +0000 (17:46 -0600)]
Unhook Page from embedded Application on disposal (#6735)

* Unhook Page from embedded Application on disposal

* Update Xamarin.Forms.Core/Application.cs

fixes #4671

5 years agoMerge branch '4.0.0' into 4.1.0
Samantha Houts [Wed, 3 Jul 2019 23:42:03 +0000 (16:42 -0700)]
Merge branch '4.0.0' into 4.1.0

5 years ago[UWP] fixes crash after reset text color (#6435)
Pavel Yakovlev [Wed, 3 Jul 2019 23:24:57 +0000 (02:24 +0300)]
[UWP] fixes crash after reset text color (#6435)

5 years agodon't throw exception if registering same route factory to same route name (#6775)
Shane Neuville [Wed, 3 Jul 2019 23:22:23 +0000 (17:22 -0600)]
don't throw exception if registering same route factory to same route name (#6775)

5 years ago[GTK] Fix navigation (#6692)
nels83 [Wed, 3 Jul 2019 22:59:37 +0000 (00:59 +0200)]
[GTK] Fix navigation (#6692)

Commit 491947606d03647124bffffcea8547e135869027
introduced this change :

* [GTK] Don't recreate the toolbar on each change

However when changing page, toolbar needs to be recreated.

5 years agoRename some tests to better identify purpose and change query to WaitForElement ...
Shane Neuville [Wed, 3 Jul 2019 15:44:14 +0000 (09:44 -0600)]
Rename some tests to better identify purpose and change query to WaitForElement (#6759)

5 years ago[ios] Shell inset, general SafeArea fixes for shell and non shell embedded pages...
Shane Neuville [Wed, 3 Jul 2019 14:27:51 +0000 (08:27 -0600)]
[ios] Shell inset,  general SafeArea fixes for shell and non shell embedded pages, entry scrolling fixes (#6457)

* [ios] insets, keyboard scroll, safearea

* ui tests

* small fixes

* ui tests

* additional ui test

* reset default padding more intelligently

* ios10 fixes

* ios10 fixes

* use safe area only if tabbar or navbar is present

* better searching for uiscrollview

* ios11 ui test fixes

* slight delay for scroll to resolve before checking

* Update Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* Update Xamarin.Forms.Platform.iOS/Renderers/KeyboardInsetTracker.cs

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/ShellInsets.cs

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* try to fix ui tests apply pr suggestions

* more app center ios10 tweaks

* ios 10 fixes

* Update Xamarin.Forms.Platform.iOS/Renderers/ScrollViewRenderer.cs

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* Update Xamarin.Forms.Platform.iOS/Renderers/ShellSectionRootRenderer.cs

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
* PR comments

* fix inset change thrashing and only send offset when changed

* add delay for loading url images and rename shell test

* add null check to extension

5 years agoImplement CollectionView grouping on iOS (#6590)
E.Z. Hart [Tue, 2 Jul 2019 21:34:45 +0000 (15:34 -0600)]
Implement CollectionView grouping on iOS (#6590)

* Implement CollectionView grouping for iOS

* Add grouping UI tests

* Fix invalidcast when source is not INotifyCollectionChanged

* Remove old TODO comments

* Apply suggestions from code review

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>
* IsGroupingEnabled -> IsGrouped

* Update empty source workaround

* Fix incorrect group counting for empty collections

* Iron out all section counts; remove unsavory empty view workaround;

* Fix crash when filter is null

* Handle sections for add/remove to/from empty sources; check for empty sources when handling sections;

* Prevent random test failures for test 5793

* Remove now-unnecessary size check on transition from empty to non-empty source

* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/CollectionViewGrouping.cs

Co-Authored-By: Samantha Houts <samhouts@users.noreply.github.com>
5 years agoMake building easier on Windows by setting PowerShell execution policy (attempt 2...
Eilon Lipton [Tue, 2 Jul 2019 20:36:22 +0000 (13:36 -0700)]
Make building easier on Windows by setting PowerShell execution policy (attempt 2) (#6755)

* Make building easier on Windows by setting PowerShell execution policy

* Update build.cake to reference cmd as well as ps1

* remove . on instructions

5 years agoCherry pick Issue4597 fixes back to branch 4.0.0 (#6724)
Shane Neuville [Mon, 1 Jul 2019 16:42:41 +0000 (10:42 -0600)]
Cherry pick Issue4597 fixes back to branch 4.0.0 (#6724)

* Split up Issue4597 into separate testable chunks (#6654)

* split up tests

* fix tests for ios

* comment out tests for UWP for now

* - add delay for loading from uri
- rearrage components so switch is always visible

* add retry logic to url based tests so images can load

* fix automationid binding

* remove extra file

* fix tabs

5 years agoMerge branch '4.1.0'
ShaneN [Sun, 30 Jun 2019 16:02:55 +0000 (10:02 -0600)]
Merge branch '4.1.0'

5 years agoMerge branch '4.0.0' into 4.1.0
ShaneN [Sun, 30 Jun 2019 16:02:26 +0000 (10:02 -0600)]
Merge branch '4.0.0' into 4.1.0

5 years agorequest layout of measure changes force layout if it doesn't (#6704)
Shane Neuville [Sun, 30 Jun 2019 16:00:34 +0000 (10:00 -0600)]
request layout of measure changes force layout if it doesn't (#6704)

5 years agofix NRE in InvokeOnMainThreadAsync (#6708)
campersau [Sun, 30 Jun 2019 08:25:53 +0000 (10:25 +0200)]
fix NRE in InvokeOnMainThreadAsync (#6708)

5 years agoMerge branch '4.1.0'
Rui Marinho [Sat, 29 Jun 2019 14:19:17 +0000 (15:19 +0100)]
Merge branch '4.1.0'

5 years agoMerge branch '4.0.0' into 4.1.0
Rui Marinho [Sat, 29 Jun 2019 14:18:41 +0000 (15:18 +0100)]
Merge branch '4.0.0' into 4.1.0

5 years agoSplit up Issue4597 into separate testable chunks (#6654)
Shane Neuville [Sat, 29 Jun 2019 13:53:38 +0000 (07:53 -0600)]
Split up Issue4597 into separate testable chunks (#6654)

* split up tests

* fix tests for ios

* comment out tests for UWP for now

* - add delay for loading from uri
- rearrage components so switch is always visible

* add retry logic to url based tests so images can load

5 years agoUpdate README.md
Samantha Houts [Fri, 28 Jun 2019 18:21:03 +0000 (11:21 -0700)]
Update README.md

5 years agoUpdate README.md
Samantha Houts [Fri, 28 Jun 2019 18:11:56 +0000 (11:11 -0700)]
Update README.md

5 years ago[Android] Fix various issues in object dispose methods. (#6467)
Kevin Petit [Fri, 28 Jun 2019 10:53:49 +0000 (12:53 +0200)]
[Android] Fix various issues in object dispose methods. (#6467)

* Android - Fix various issues in object dispose methods.

* Tear down old element before disposing the ItemViewAdapter.

* More fixes.

* NavigationPageRenderer - Reorder ResetToolbar and remove view before dispose
ShellSectionRenderer - Call base.Destroy last + Remove and destroy _scrollview

* Remove obsolete code.

* Fix build.

5 years ago[Shell] MenuItem font image fix (#6628) fixes #6559
Felipe Momm [Fri, 28 Jun 2019 10:52:59 +0000 (07:52 -0300)]
[Shell] MenuItem font image fix (#6628) fixes #6559

* [Shell] FontImageSource not working with MenuItem

* [Shell] Adds missing Binding (FlyoutIcon) for ShellItem

* Revert changes and adjust to change the binding instead

* Replace magic strings for nameof

5 years agoreturn empty dictionary instead of null (#6675) fixes #6614
Shane Neuville [Fri, 28 Jun 2019 10:17:11 +0000 (04:17 -0600)]
return empty dictionary instead of null (#6675) fixes #6614

* return empty dictionary instead of null

* add warning if Element is being reparented

* fix warning message

* only fire warning if parent has inner children

5 years agoAdds FontImage Markup Extension for FontImageSource (#6398)
Andrew Hoefling [Fri, 28 Jun 2019 00:23:32 +0000 (20:23 -0400)]
Adds FontImage Markup Extension for FontImageSource (#6398)

* Added FontImage markup extension which simplifies usage of FontImageSource into any ImageSource

* Added unit tests to cover TabBar which is used in Shell

* Cleaned up xaml for test code

* Removed class references from unit test project which were added by mistake

* Removed FontImageExtension from markup parser

* Added ContentProperty to markup extension

* Added Size to FontImageExtension

* Updated unit tests for new properties

* added unit tests to certify each property was set correctly by the markup extension

* Added content property test to certify that Glyph is being set correctly

* Flipped order in unit tests of expected and actual

* Updated default value for Size to use the FontImageSource default's value. This will keep it in sync if that value ever changes

fixes #6376

5 years agoValidate style target at runtime (#6677)
Andrei Nitescu [Fri, 28 Jun 2019 00:19:47 +0000 (03:19 +0300)]
Validate style target at runtime (#6677)

* Check Style target type at runtime #6268

* Use IsAssignableFrom internal version
fixes #6268
fixes #6535

5 years agoMerge branch '4.1.0'
Samantha Houts [Thu, 27 Jun 2019 23:50:21 +0000 (16:50 -0700)]
Merge branch '4.1.0'

5 years agoMerge branch '4.0.0' into 4.1.0
Samantha Houts [Thu, 27 Jun 2019 23:49:07 +0000 (16:49 -0700)]
Merge branch '4.0.0' into 4.1.0

5 years agomake ShouldChangeText virtual (#6634)
adrianknight89 [Thu, 27 Jun 2019 23:37:25 +0000 (18:37 -0500)]
make ShouldChangeText virtual (#6634)

5 years ago[iOS] Provide a base CarouselViewRenderer (#6686)
Rui Marinho [Thu, 27 Jun 2019 23:34:52 +0000 (00:34 +0100)]
[iOS] Provide a base CarouselViewRenderer (#6686)

* [iOS] Don't provide a CarouselViewRenderer

* [iOS] Fix CarouselViewRenderer

* Update CarouselViewRenderer.cs

5 years agoUpdate nightly feed (#6411)
Rui Marinho [Thu, 27 Jun 2019 21:03:19 +0000 (22:03 +0100)]
Update nightly feed (#6411)

* Update README.md

* [Docs]Update to aka.ms link

* Update README.md

5 years ago[Bugfix] Catching ReflectionTypeLoadException in the VisualTypeConverter (#6646)
Sergej Derjabkin [Thu, 27 Jun 2019 18:46:33 +0000 (21:46 +0300)]
[Bugfix] Catching ReflectionTypeLoadException in the VisualTypeConverter (#6646)

* - Bugfix: Catching ReflectionTypeLoadException in the VisualTypeConverter

* - Fixed formatting

* - Removed empty line

5 years agoButton Layout gallery page: don't set initial Padding (#6599) fixes #6469
Andrei Nitescu [Thu, 27 Jun 2019 10:42:42 +0000 (13:42 +0300)]
Button Layout gallery page: don't set initial Padding (#6599) fixes #6469

5 years agotry to generate more unique names (#6669)
Stephane Delcroix [Thu, 27 Jun 2019 09:30:11 +0000 (11:30 +0200)]
try to generate more unique names (#6669)

- fixes #6668

5 years ago[Tizen] Added support AutomationProperties (#6080)
Kangho Hur [Wed, 26 Jun 2019 16:10:09 +0000 (01:10 +0900)]
[Tizen] Added support AutomationProperties (#6080)

5 years agoFix flaky tests. (#6510)
Kevin Petit [Wed, 26 Jun 2019 15:57:36 +0000 (17:57 +0200)]
Fix flaky tests. (#6510)

Found issues on some tests when running on my local machine.
The test Bugzilla 31333 dont wait the input to take focus (so on a fast machine it fail).
The test Issue1733 use the current culture to parse number which can fail (and indeed fail on my machine).

5 years agowait for animation to complete (#6652)
Shane Neuville [Wed, 26 Jun 2019 15:57:26 +0000 (09:57 -0600)]
wait for animation to complete (#6652)

5 years ago[Tizen] Add Checkbox (#6526) fixes #1728
Kangho Hur [Wed, 26 Jun 2019 15:52:22 +0000 (00:52 +0900)]
[Tizen] Add Checkbox (#6526) fixes #1728

5 years ago[UWP] CollectionView SelectionMode (#6629) fixes #3172 fixes #6489 fixes #5844 fixes...
humhei [Wed, 26 Jun 2019 15:37:08 +0000 (23:37 +0800)]
[UWP] CollectionView SelectionMode (#6629) fixes #3172 fixes #6489 fixes #5844 fixes #5625

* UWP CollectionView SelectionMode

* Null check

* SelectItems get property

* ItemTemplatePair type check

* Avoid mutually trigger OnSelectionChange

* Extended -> Multiple + Avoid creating new SelectedItems

5 years ago[X] resolve event handlers in base generic types (#6194)
Stephane Delcroix [Wed, 26 Jun 2019 12:35:54 +0000 (14:35 +0200)]
[X] resolve event handlers in base generic types (#6194)

* [XamlC] fix Debug harness generation code

* [X] resolve event handlers in base generic types

- fixes #6176

5 years agoIssue1733 change Query to WaitForElement (#6588)
Shane Neuville [Wed, 26 Jun 2019 04:52:09 +0000 (22:52 -0600)]
Issue1733 change Query to WaitForElement (#6588)

- rename test