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

3044 Коммитов

Автор SHA1 Сообщение Дата
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
Samantha Houts a542264a38
[Android] Fix WebView EnableZoomControls and DisplayZoomControls api (#6137)
* Add tests for #6132 and #6130

* [Android] Fix EnableZoomControl BP name and fix helper methods

fixes #6132
fixes #6130

* Update Xamarin.Forms.Controls.Issues.Shared.projitems
2019-05-09 11:00:14 -07:00
Daniel Luberda f9f7d668ad [Android] VisualElementRenderer and ElevationHelper should be public (#6131)
* VisualElementRenderer and ElevationHelper should be public

* ElevationHelper.SetElevation should be public

* remove comment
2019-05-09 10:57:59 -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 ac39e00db8 [Android] Fix Frame size (#6115) fixes #5766 2019-05-09 09:20:37 -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 bbb6427f79 [iOS] add DesignerFlyoutRenderer when running as previewer (#6119)
* add DesignerFlyoutRenderer

* private and hack comment

* internal
2019-05-09 09:05:57 +02: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
Shane Neuville 18dc4ec13d [Shell] Add Tab bar and auto promote tabs to nearest TabBar (#6023)
* add tab bar and promote implicit tabs to same tabbar

* - remove parent

* remove tab bar from flyout

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

Co-Authored-By: PureWeen <shane94@hotmail.com>
2019-05-08 16:15:18 -07:00
E.Z. Hart 1cb51cc34a Make Android CollectionView smarter about recycling elements/renderers (#5980) 2019-05-08 16:14:18 -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
Shane Neuville bfd4ed0f04
Apply round corners shape based on radius (#6099)
* Apply round corners shape based on radius

* update gallery

* apply to SmallComponentShape

* add color scheme back

* basic fixes

* - make corner radius default the same
- reapply theme on ios so corner is changeable
- force set ios border width to size

* fix border width for default and remove extra call to bgcolor
2019-05-07 10:52:53 -06:00
Shane Neuville a827e30e31
return from designer earlier (#6102)
* return from designer earlier

* - initialize fake coordinator layout for designer

* change to a non appcompat compatible layout
2019-05-06 19:44:00 -06:00
E.Z. Hart a6cb5555dd Update screen size info after orientation change on Android/iOS (#5975)
* Update Android screen size info in Device when changing orientation;
Fixes #4992

* Add test instructions

* Update iOS screen size on orientation change

* Fix build error in UI Test projects

* Fix errors with #if directives in iOS/macOS projects

* Update Xamarin.Forms.Platform.MacOS/MacDeviceInfo.cs

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

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

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

* Update Xamarin.Forms.Platform.iOS/IOSDeviceInfo.cs

Co-Authored-By: hartez <hartez@users.noreply.github.com>
2019-05-06 15:27:43 -07:00
Shane Neuville 8784a7ea82
rename SearchBoxVisibility (#6103) 2019-05-06 14:31:06 -06:00
E.Z. Hart 4220b506c6
Hopefully fix the mdoc issues with the localization typo (#6105) 2019-05-06 14:29:27 -06:00
Shane Neuville be73dd3852
[Android] Image load fixes (#6062)
* fix loading for lollipop

* cache

* fix some loading behavior

* requested changes

* cache fixes

* API 19 fix

* fix sizeof and use lazy

* add better management over requests to same key

* add caching validity checks

* remove remove and fire and forget put

* synchronous put

* add disposed check for bitmap data

* max memory
2019-05-06 11:13:36 -06:00
Shane Neuville d76044fece changes transition to enter mask (#6066)
fixes #5216
2019-05-03 11:38:46 -07:00
Shane Neuville 8a7ee8632e [Android] Fix previewer exceptions with shell (#5955)
* shell preivewer

* nonappcompat hack

* - moove up null check

* internal IsDesignerContext
2019-05-02 11:26:42 +01:00
Shane Neuville dbbc5d5413 retain local variable of page so not collected (#6054) 2019-05-01 09:12:41 -07:00
Samantha Houts cf5cb580dc Merge branch '3.6.0' into 4.0.0 2019-04-29 16:42:15 -07:00
Shane Neuville 470f97bf18 fix global routes to push onto stack correctly (#6025)
fixes #6016
2019-04-29 16:40:11 -07:00
Shane Neuville 8fe0abc165 additional proguard rules for shell (#6032)
* additional proguard rules for shell

* add property to disable file

fixes #5799
2019-04-27 12:21:30 -07:00
Shane Neuville 5fb29b72c6 add check for null track drawable (#6029)
fixes #5970
2019-04-27 12:18:33 -07:00
Shane Neuville 468e03ed5c [Android] set dialog to null when dismissed (#6031)
fixes #5945
2019-04-27 12:18:08 -07:00
Samantha Houts 0162b1815c
[Android] Use Fast Renderers by Default (#5926)
* [Android] Unseal FastRenderers

* [Android] Flip experimental flag to legacy flag

* Flip flag for testing both renderers & set up custom renderers for testing

* Undo build arg change

This reverts commit 8447fec03b4dff16d8ca96544ec83159670b80d7.

* Fix whitespace

* restore workaround for #2520

* Only use workaround for fast renderers (crashes legacy)

fixes #5724
2019-04-27 12:15:39 -07:00
Shane Neuville c6b287d6eb
fix tizen obsolete errors (#6030) 2019-04-27 11:48:26 -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
Matt Soucoup b6f10eff04 Add null check in iOS ShadowEffect OnDetached (#5952)
Added a null check in iOS ShadowEffect OnDetached
fixes #5951
2019-04-26 09:15:04 -07:00
Kangho Hur eaeffc4e54 [Material] [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual (#5453)
* [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual

* Update Tizen.NET.MaterialComponent for applying color scheme

* Don't build XF.Material.Tzien on iPhone and iPhoneSimulator

* Fix MCanvas build issue

* Update build-windows.yml for XF.Material.Tizen
2019-04-25 12:01:54 -07:00
yourina f08dcdbfae Add the ShellRenderer for Tizen (#5818) 2019-04-25 12:01:13 -07:00
Shane Neuville fb7f7a25d3
Shell hamburger (#5961)
* Draw the hamburger if the user hasn't supplied an icon

* move variable

* remove excess code

* remove public
2019-04-24 18:36:19 -06:00
Shane Neuville 48606a5f1f
fix infinite loops and remove public apis (#5954)
* fix infinite loops and remove public apis

* - remove comments, fix location to not have implicit

* force uri to be relative on ios when no scheme specified

* address PR comments

* add error message

* reformat absolute uris

* additional suggestions

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

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

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

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

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

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

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

Co-Authored-By: PureWeen <shane94@hotmail.com>
2019-04-24 16:25:12 -06: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
Pavel Yakovlev 87a93774ab [Shell, iOS, Android] added tab order on Shell flyout menu items (#5930)
* [Shell, Android] added tab order on Shell flyout menu items

* [iOS mac] fix build

* support iOS
2019-04-23 20:33:09 -06:00
Samantha Houts 77fda87ae0
Add unit tests for TabIndexExtensions (#5722)
* Add check to FindNextElement

* Add unit tests for TabIndexExtensions
2019-04-23 17:09:20 -07:00
Morten Nielsen cbf2d089fa Avoid LINQ exception (#5933)
* Avoid LINQ exception

If the back button in UWP is pressed, but there's nothing in the backstack, the `Last()` LINQ query will throw `System.InvalidOperationException: 'Sequence contains no elements`
This change avoids that, and just returns false that Forms didn't handle the event.

* Change to use LastOrDefault
2019-04-23 11:18:19 -06:00
Shane Neuville e26d22d77c
add delay to 2951 (#5972) 2019-04-23 11:13:20 -06:00
Shane Neuville 6c0a9405a2 [Android] move runtime registration of renderers to its own method (#5946)
* move renderer registration to its own method

* - move to static
2019-04-18 16:25: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
Rui Marinho d63002c25f Merge branch '3.6.0' into 4.0.0 2019-04-18 16:15:48 +01:00
Rui Marinho 3f968189d7
[Build] Fixes to yaml public build (#5948)
* [Build] Don't sign on public builds

* [Build] Use vmImages

* [Build] Fix pool specification

* [Build] Revert back to pool name

* [Build] add osx demands

* [Build] Fix indentation

* [Build] Add more demands

* [Build] Try using certs

* [Build] Try use name

* cert password

* [Build] Add endpoint back

* [Build] Add VSTS feed as variable

* [Build] Add signing stuff

* Fix

* [Build] Try simplify Windows build

* [Build] Publish android apps

* [Build] Add signVmImage
2019-04-18 16:14:47 +01:00
Shane Neuville 7dda665c6d
Move IElementConfiguration to an internal structure on Cell (#5850)
* Move IElementConfiguration to an internal structure on Cell

* set custom ElementConfiguration to private

* fix comments
2019-04-17 11:59:16 -06: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
Shane Neuville 04d9535a58
remove used Group Header Template (#5906) 2019-04-16 10:38:17 -06:00
Rui Marinho 4f0724fc4c [iOS] Fix usage of iOS11 api (#5893)
* [iOS] Fix usage of iOS11 api

* [iOS] Fix remaining calls to HomeIndicatorHidden feature
2019-04-15 14:24:50 -07:00
Shane Neuville 620c059b1b
[Shell] Hide Shell types from being browsable (#5915)
* set shell things to EditorBrowsable false

* - EditorBrowsable always

* delete tab content
2019-04-15 10:22:47 -06:00