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

319 Коммитов

Автор SHA1 Сообщение Дата
Kangho Hur fe5b6bdcb4 [Tizen] Added support AutomationProperties (#6080) 2019-06-26 17:10:09 +01:00
Rui Marinho 1a02c31fec Merge branch '4.0.0' into 4.1.0 2019-06-19 23:49:12 +01:00
Pavel Yakovlev 95786cd309 Dynamic view gallery support all Enum properties (#6434) 2019-06-19 19:45:54 +01:00
ShaneN d77fccdaa6 Merge 4.0.0 into 4.1.0 2019-06-18 10:42:55 -06:00
Shane Neuville a169cf7f69 [Android] Fix context actions icon so that it loads (#6437) fixes #6258
* fix icon load loading and setting accessibility on menuitem

* instructions

* clean up

* Update Xamarin.Forms.Platform.Android/Extensions/AccessibilityExtensions.cs

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

* Update Xamarin.Forms.Platform.Android/ResourceManager.cs

* Update Xamarin.Forms.Platform.Android/CellAdapter.cs

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

* Fix load TitleIcon on non app compact

* apply valid check one more place

* automate titleicon fixes

* fix ui tests and removed _isdisposed

* toolbaritem ui test tweaks

* toolbar tweaks

* ios toolbaritem tweak

* update menuitem to read like other platforms

* retain automationid if content desc not set
2019-06-18 11:20:36 +01:00
E.Z. Hart 97192bc095 Add Intellisense for vertical/horizontal list options in CollectionView (#6537) 2019-06-18 11:20:02 +02:00
Pavel Yakovlev b8bffb6c79 [Android] Fixes work IsClippedToBounds on (Fast Renderer) Frame (#6358) fixes #3150 fixes #6447
* [Android] Fixes work IsClippedToBounds on (Fast Renderer) Frame
- fixes float values in Dynamic ViewGallery

* added on-screen instructions for test

* added API check

* added SetClipToOutline to ViewExtensions

* added button to toggle IsClippedToBounds
2019-06-17 12:43:11 +01:00
E.Z. Hart 216e565b07 [Android, iOS] Item Spacing for CollectionView (#6478) fixes #4681
* First pass at item spacing for CollectionView ListItemsLayout on Android

* Handle GridItemsLayout spacing on Android

* Change spacings from int -> double
Implement spacing on iOS

* Remove old TODO comment
2019-06-13 19:17:10 +01:00
E.Z. Hart 3bc2e5e94b Speed up core UI tests and reduce flakiness (#6395)
* Speed up ViewUITests and hopefully reduce flakiness

* Make focus tests work even when keyboard pops up

* Move Date/Time picker tests to the end so they can't break the other bubbling tests
Add delay before trying to dismiss dialogs so they can fully appear

* Fix accidental triggering of Picker when removing focus from Entry

* Bump up number of tests before restart
2019-06-04 19:28:21 +01:00
Shane Neuville 5b284b4d76
Checkbox (#6232)
* Add CheckBox class and Renderer

* Add CheckBoxCell class

* Add Control Gallery for CheckBox and CheckBoxCell.
Add stubs only for Android for now.

* Update to fast renderer for Android, Implement Checked and Unchecked Colors!

* Initial UWP implementation, no colors yet.

* Add iOS implementation for checkbox. It's not pretty, but it is a start!

* Updates from Frank

* Code cleanup with frank

* Finalize iOS checkbox!!! it is a circle!

* Fix WPF build and Add a checkbox!!!

* Cell Renderers and macOS

* UWP switchcell

* Update CheckBox Cell on ios/android with colors

* Remove all instances of CheckBoxCell per demand

* Added UITests and UnitTests

* Changed colors to TintColor which makes sense. Added a IsChecked visual state property and a sample!

* checkbox cleanup, tint color fixes, and material

* uwp fix when changing TintBrush

* add checkbox to visual controls page

* formatting fix

* formatting fix

* formatting fix

* convert to tabs

* formatting

* checkbox tabs

* roll back formatting changes to WPFResources

* android renderer overrides

* uwp fix and sizing fix ios

* mask checkbox

* use a single image for ios inatead of always drawing new ones

* wpf fix

* rename to color and add css interfaces

* missing wpf file

* designer hack

* fix wpf for ios builds

* assembly info

* fix default tint color and infinite crash

* [iOS] fixes change checked state from control
simplification
added to dynamic galery

* [iOS material] fix crash when dispose

* [UWP, WPF] fix vertical alignment

* [Android] fixes does not change size when the reduction HeightRequest

* Update Xamarin.Forms.Material.iOS/MaterialCheckboxRenderer.cs

Co-Authored-By: Samantha Houts <samhouts@users.noreply.github.com>

* [Android] TabStop support

* alphabetize gallery, fix color update when disabled, unsubscribe from event in dispose

* cleanup assembly info

* fix assembly attributes

* remove assembly info

* pr comments

* couple of more dispose fixes

* One Last Dispose

* fix api 19 call to ClipToOutline
2019-05-30 10:32:28 -06:00
E.Z. Hart 34165550f5 Make CollectionView SelectedItem and SelectedItems binding function correctly (#6085)
* Add automated test for CollectionView single selection bound item

* Make SelectedItem Two-Way

* Multiple selection test page

* Bindable SelectedItems implementation

* Add automated test

* Simplify null checks

* Add Preserve attribute so linker doesn't break test

* Make multi-item select test smaller so it passes UITests on smaller screens

* Clearer list-to-string method

* Clear native selection on iOS when SelectedItem set to null

fixes #6158
fixes #5832
2019-05-28 10:54:09 -07:00
Stephane Delcroix 5eca00b0e2
move imports to Directory.Build.[props|targets] (#6212) 2019-05-18 05:19:09 -07:00
Samantha Houts 5bc4be14ec Merge branch '4.0.0' 2019-05-11 12:14:20 -07:00
Shane Neuville 056ec1a099 item template attached, fix icon propagations (#6173)
* item template attached, fix icon propagations

* tabs
2019-05-11 12:09:10 -07:00
Samantha Houts 1b26e4d9f3 Merge branch '4.0.0' 2019-05-09 21:14:54 -07:00
Shane Neuville d857ce2679 fix up shell menu items, fix templates, fix bindings (#6117)
* fix up shell menu items, fix templates, fix bindings

* propagate bindingcontext changed on menu items

* address feedback
fixes #4399
fixes #5707
2019-05-09 20:58:04 -07:00
Shane Neuville 03e9a9fe43 Remove experimental flag for shell and change a few apis (#6086) fixes #2415
* api changes for shell official

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

Co-Authored-By: PureWeen <shane94@hotmail.com>

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

Co-Authored-By: PureWeen <shane94@hotmail.com>

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

Co-Authored-By: PureWeen <shane94@hotmail.com>

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

Co-Authored-By: PureWeen <shane94@hotmail.com>

* fix compile errors

* fix ui test

* fix ui test

* removed some more properties

* remove a couple more
2019-05-09 14:18:04 -07:00
Shane Neuville 3caf60427f [iOS] Shell flyout header on iOS now is dynamic based on the header content (#6109) fixes #3875
* fix the flyout header to size based on content opposed to a fixed height

* update storeshell

* added height slider into storeshell

* resize header if underlying measure changes

* unsubscribe
2019-05-09 14:16:51 -07:00
Rui Marinho e231882214 [Shell,iOS,Android] Add Colors, Font, HorizontalAlignment. Keyboard, Focus to SearchHandler (#5810)
* [Shell,iOS] Add Colors, Font , HorizontalAlignment and keyboard support to SearchHandler

* {Android]Allow set colors and customize text on Shell SearchHandler

* [Android] Update icons color on SearchView

* [Android] Update Placeholdericon color from one place

* [iOS] Update shell cancel button colours

* [iOS,Android] Update IconPlaceholder color

* [Core] Fix missing region

* [Controls] Add shell SearchHandlerPage

* [iOS] Fix alignment changes on SearchHandlerAppearanceTraccker

* [Shell,Core] Add focus to SearchHandler

* [Android] Add SearchHandler focus

* [iOS] Add SearchHandler focus

* [Controls] Reuse dynamic gallery for SearchHandler

* [Controls] Fixes to gallery

* [Android] Remove cancel button code

* [Android] Add extension point for SearchHandlerAppearanceTracker

* [Android] Fix spelling

* fix bad merge

fixes #3125
fixes #5768
2019-05-09 10:42:18 -07:00
Pavel Yakovlev 9ffa2b44f3 Added memory leak gallery (#5795)
* Added memory leak gallery

* fixes getting content
2019-05-09 09:49:01 -07:00
Shane Neuville 09dc54b3f7 4.0 ABI Fixes (#6133) fixes #6123
* fix background image type

* additional abi fixes

* updated 4915 to test nav icon

* uwp fixes

* Update Xamarin.Forms.Platform.UAP/TabbedPageStyle.xaml
2019-05-09 09:17:59 -07:00
Rui Marinho 9323372fb6
[Shell,iOS,Android] Add accessibility features for navigation bar and toolbar items (#5758) fixes #5132
* [Controls,Shell] Add automation properties to FlyoutIcon

* [iOS] Set accessibility properties from flyout icon on ShellPageRenderer

* [Android] Add accessibility features to Shell flyout icon

* [Android] Add accessibility to shell toolbar and button items

* [Controls] Add uitest for issue #5132

* [Controls] Fix uitest android

* [Controls] Use new types

* [UItests] Only run on iOS and Android

Co-Authored-By: rmarinho <me@ruimarinho.net>

* [Controls] Add scrollview to test page

* [Android] Set icon AutomationId using NavigationContentDescription

* [Android] Restore code on AutomationPropertiesProvider

* [Android] Set help text or AutomationID for toolbar navigation content description

* Update Xamarin.Forms.Platform.Android/Renderers/ShellToolbarTracker.cs
2019-05-09 09:14:25 -07:00
Shane Neuville a1431ed9da remove route params from shell (#6081)
* remove route params from shell

* Update Xamarin.Forms.Core.UnitTests/ShellTests.cs

Co-Authored-By: PureWeen <shane94@hotmail.com>

* fix unit test
2019-05-08 16:15:43 -07:00
E.Z. Hart 6147647f69 [iOS] Add missing call to ReloadData on NotifyCollectionChangedAction.Reset (#6089) fixes #5793
* Add missing call to ReloadData on INCC Reset; fixes #5793

* Automated test for INCC Reset
2019-05-08 09:02:14 -07:00
Muzib cc1206a536 Addresses issue #5854 (#5855)
fixes #5854
2019-04-29 14:39:45 -07:00
ShaneN b3927b617f merge 4.0.0 in master 2019-04-29 14:14:19 -06:00
Shane Neuville 2ca5dbf3b8
[iOS] remove SetPaddingInsets api and just have it pad content and flyout by default (#5990)
* remove content setting api and just set by default

* - address comments and centralize window insets check

* add check if height < 0
2019-04-26 21:29:42 -06:00
Matthew Leibowitz a8d0d7a1d4 [WIP] Unify the image handling (#4915)
* Initial code to get unifiied image handling
 - not yet tested
 - still using FileImageSource in some areas

* Updated the button renderers and added tests for Android

* Updated a few more of the Android renderers
 - also added an `IsEmpty` property to the ImageSource to indicate if this source actually contains data that can be used to try and load an image
 - added a few more "tests"
 - includes the changes for #4916

* A few more changes

* Keep the default page for the sample app

* Changing everything to ImageSource and going from there
 - Android, iOS, UWP and WPF are compiling
 - GTK, Mac and Tizen are not yet finished
 - Added a new interface for UWP to return an IconElement in addition to ImageSource (for app bar buttons)
 - not tested yet, nor are there any tests

* Renamed the property to be more useful

* All of Android is now async
 - still only minimal tests
 - also removed the bits that are in https://github.com/xamarin/Xamarin.Forms/pull/4948

* Update Xamarin.Forms.Platform.cs

* A few fixes to whitespace and nameof()

* Updated iOS and UWP wirth async image sources

* A few fixes and WPF support

* A few fixes for Android after the big merge

* Updated a few more loaders:
 - ios
 - macos
 - tizen
 - gtk

* Fix a few things after the merge

* - cast type to FileImageSource

* fix setting of title content if icon doesn't load

* fix IButtonLayoutManager to return correct control

* remove cast and add pack api

* - fix timing issues with layout/invalidation

* - remove aggresive element invalidations for now

* first set of api changes

* obsolete old apis and create new ones for ImageSource

* obsolete messages and static ordering fix

* add tests

* switch default on windows to show images on tabs

* - XStatic obsolete fix

* fix NPC test and bring back alert check on uwp

Fixes #3207
Fixes #4689
2019-04-26 13:46:13 -07:00
E.Z. Hart 583be22d5c Allow CollectionView items to resize with their content (#5905)
* Add gallery for reproing expanding DataTemplate content;
Allow ItemContentView on Android to expand with content;
Allow ItemContentView on iOS to expand with content;
Fixes #5647

* Improve instructions
Fixes #5721
Fixes #5521

* Apply suggestions from code review

Co-Authored-By: hartez <hartez@users.noreply.github.com>

* Clear binding contexts before recycling cells/viewholders.
2019-04-24 11:30:02 -07:00
jcmanke 4373a07361 [Maps] Add MapClicked event (#5317)
* Add MapClicked event to Map

* Android MapClicked implementation

* iOS MapClicked implementation

* UWP implementation of MapClicked

* Null check before sending MapClicked event from renderers

* Rewrote MapGallery page in XAML
2019-04-23 17:57:22 -07:00
E.Z. Hart e50775037a [UWP] Allow embedding Forms page in secondary window (#5658)
* Make secondary window work in UWP (fixes #2229)

* Update Xamarin.Forms.Core/Internals/Ticker.cs

Co-Authored-By: hartez <hartez@users.noreply.github.com>
2019-04-22 15:44:12 -07:00
Rui Marinho 998dc3534c Merge branch '4.0.0' 2019-04-18 16:27:58 +01:00
Shane Neuville dbf4037a31 [Shell] Propagate Page bindings to TitleView and Shell Binding to Flyout (#5934) fixes #5650 fixes #5501
* propagate bindingcontext

* - add exception message and fix poorly named xaml file

* add ui test automation

* - fix unit test to represent new code

* - changed from ui test to unit test

* - propagate visual, parent, bc to titleview

* - style fixes
2019-04-18 16:25:31 +01:00
E.Z. Hart 66134650e3
Remove need for PressEnter on test 5535 because it crashes iOS 12 tests 2019-04-17 10:13:10 -06:00
Larry O'Brien f4d87bbf04 s/SearchBoxVisiblity/SearchBoxVisibility/ from base 4.0.0 (#5931)
* s/SearchBoxVisiblty/SearchBoxVisibility/

Fix typo in type name.

* s/Collapsable/Collapsible/

* Changed capitalization in comment
2019-04-16 15:04:55 -07:00
Samantha Houts 105ded9353 Merge branch '4.0.0' 2019-04-10 22:03:02 -07:00
piotrkonowalski 4b5ed4c3c6 [iOS] Add Platform Specific features for PrefersHomeIndicatorAutoHidden (#5717)
fixes #5310
2019-04-10 21:58:34 -07:00
Samantha Houts a58f4d7e97
[Android/iOS] TabIndex sets focus order for TalkBack traversal (#3989)
fixes #2789
2019-04-10 21:53:37 -07:00
Stephane Delcroix c92fb05acd Merge branch '4.0.0' 2019-04-04 08:55:24 +02:00
E.Z. Hart d1dc874dab Allow EmptyView swapping in Android CollectionView (#5720) fixes #5535
* Automated test for issue

* Fix empty view swapping for Android (fixes #5535)

* Remove private modifier

* Account for null Flags when setting flags for test

* Fix rebase issue
2019-04-03 17:49:05 +01:00
Rui Marinho e822046427 Merge branch '3.6.0' into 4.0.0 2019-04-02 18:28:23 +01:00
Pavel Yakovlev 9bb6c24b49 [UItest] Added dynamic view gallery (#5402) 2019-04-01 20:45:41 -06:00
E.Z. Hart 170c8922c7 Fix UI test 4600 for Android/iOS; fixes #4943 (#5726) 2019-04-01 20:34:36 -06:00
Shane Neuville 7e423a41d2
Extend Control Gallery to allow for Shell UI Tests (#5740)
* enable UI tests for shell

* - fix test for ios shell

* - add scrollview so success is visible on ios

* - add instructions

* - add shell category
2019-04-01 14:25:01 -06:00
Andrei Nitescu 740654ff56 Map with ItemTemplateSelector (#5226)
* Map with ItemTemplateSelector

* Fixed Map test
2019-04-01 11:12:40 -07:00
Shane Neuville eac5e45be7 Shell.CurrentShell is too many Shells (#5761) 2019-04-01 09:52:18 +01:00
Samantha Houts ca184714b4 Merge branch '3.6.0' into 4.0.0 2019-03-27 17:13:02 -07:00
Pavel Yakovlev efd55b8b3f [UWP] Fixes the casting crash of the FontImageSource (#5678) 2019-03-27 17:26:05 -06:00
E.Z. Hart 85e75046c2 Handle DataTemplateSelector on iOS/Android CollectionView (#5429)
* DataTemplateSelector working on Android for ItemTemplate and EmptyTemplate

* Demonstrate DataTemplateSelector working with EmptyViewTemplate

* Handle DataTemplateSelector on iOS CollectionView

* Add UI test
Fixes #4826

* Temporarily patching EditorRenderer to get tests running

* Add test for binding errors;
Fix binding errors on Android;

* Fix binding errors for iOS

* Add flag setting to allow UI test to run

* Fix rebase errors
2019-03-27 17:03:35 -06:00
Rui Marinho 23b61a434b
Merge branch '3.6.0' into 4.0.0 2019-03-27 18:51:38 +00:00