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

45 Коммитов

Автор SHA1 Сообщение Дата
Samantha Houts 14af670f5a Merge branch '3.1.0' 2018-05-23 11:27:58 -07:00
Samantha Houts a6a3b25ade Merge branch '3.0.0' into 3.1.0 2018-05-23 11:26:13 -07:00
Samantha Houts 348b443861 [iOS] Restore NativeViewWrapper registration (#2772)
* Add RegistrarValidationService to test presence of renderers

* [iOS] Restore NativeViewWrapper registration

fixes #2757

* [Android] Prevent NRE in ListViewAdapter
2018-05-22 11:24:47 -07:00
E.Z. Hart 2082976620
Add missing image for 39768 test on UWP; fixes #2321 2018-05-15 16:55:33 -06:00
Shane Neuville ac8687614b Fixes #2399 (#2416) 2018-04-30 17:46:03 +01:00
Stephane Delcroix 66175c1b1f Merge branch '3.0.0' 2018-04-26 11:03:15 +02:00
Samantha Houts c4d16c0d42 [Core] Improve Renderer registration order (#2519)
* Add repro for 2489

- Repo steps are to swap to the TabbedPage root; if the tabs are still visbile, test has passed.
- Also add Preserve attribute to the core test pages so we can test with the Android linker on.

* [Android] Add note to remind us where the renderers are registered

* [iOS] Switch to loading renderers via RenderWithAttribute

* [Core] Ensure that the most specific renderer is returned by Registrar.GetHandlerType

fixes #2489

* [Core] Prevent insane loop

* implement review feedback
2018-04-25 14:05:59 -07:00
Jason Smith 3b6ee6e8f3
Merge branch '3.0.0' 2018-02-27 10:34:19 -08:00
Jason Smith d32e6eefba
Merge branch '15-5' into 3.0.0 2018-02-27 10:32:57 -08:00
Shane Neuville b5fab7192c Capitalization keyboard flag additions for Entry/Editor (#1683) (#1833) 2018-02-26 11:06:24 +00:00
E.Z. Hart ab9766c4ec Remove temporary key pfx files from UWP projects (#1962) 2018-02-23 11:47:52 +00:00
Rui Marinho ccba670b37
[iOS] ViewDidLayoutSubviews after removing page (#1532) fixes #1426
* [Controls] Repo for issue #1426

* [Controls] Simplify reproducion

* [iOS] Make sure to call layout when page is removed from stack and CurrentPage is updated

* [Controls] Fix issue number

* Update test and packages

* [Build] Fix windows cert

* [Build]Fix master and build (#1920)

* [Build]Fix master and build

* [Pages] Fix certs

* Update Xamarin.Forms.ControlGallery.WindowsUniversal.csproj

* Fix test again

* Update Bugzilla37841.cs
2018-02-20 12:30:32 +00:00
Rui Marinho c02086d302
[Build]Fix master and build (#1920)
* [Build]Fix master and build

* [Pages] Fix certs
2018-02-19 17:07:47 +00:00
Rui Marinho f6c5b75e65 [Build] Fix windows cert 2018-02-19 15:14:11 +00:00
Rui Marinho ff40c5b4e1
Add netstandard1.0 support (#1649)
* [Core] Add pcl Xamarin.Forms.Core

* [Core] Add Platform PCL

* [Core] Add Xamarin.Forms.Core PCL

* [Core] Use multi target

*  [Nuget,Core] Add pcl back, multi target netstandard1.0 and netstandard2.0

* [Core] Fix ImageSource for non PCL

* Fix uap

* [UWP] Fix references

* Cleaned up the solution file to remove unused platforms (#1770)

* Try don't build Appx

* [Core]Use netstandard1_0 compile directive

* Don't build UWP and WPF on macOS (#1774)

* [Xaml] Fix compile constant

* [Core] Fix Tuple usage

* [Build] Update provisioning 15.5 sr5

* [Core] Use default compile directive for netstandard1.0

* [Nuget] Add uwp dependency to nuspec

* [Nuspec] Fix speling

* [Core] Add support to FlexLayout on netstandard 1.0

* Try fix test

* cleanup

* [Core] Fix netstandard1.0 usage

* [Core] Remove tuple usage FlexLayout, cleanup
2018-02-08 18:18:56 +00:00
Samantha Houts c18e85ee43 [Internal] Basic performance testing and monitoring (#1329)
* [Core] Extract Performance class to Performance Provider

* [iOS] Add instrumentation

* [Android] Update instrumentation

* [Controls] Add perf gallery

* Update docs

* Get build number from txt file

* Remove unnecessary .bat
2018-01-31 18:09:15 +00:00
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
E.Z. Hart 7a2d3f1160
Replace album cover with non-copyright image 2017-11-28 16:29:35 -07: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
E.Z. Hart 9c48284dce
Add success label for UWP BorderEffect for test 45874 2017-11-17 10:09:28 -07:00
E.Z. Hart ec072eea75
Add missing image for 40161 test on UWP; update test image 2017-11-17 09:51:06 -07:00
E.Z. Hart f00907ea16 Add more UWP automated testing capabilities (#1252)
* Implement Clear(marked) method

* For Windows tests where we need to query a value we can't get, mark inconclusive

* Fix queries for multi-line "marked" values

* Force frames with text in them to be "tappable"

* Actually rerun queries during retry

* Update images for package deployment

* Allow the tests to restart the Control Gallery if it crashes

* UWP tests can now activate context menus

* Make double-tap (really double click) work for UWP desktop

* Get some basic scroll up/down functions working

* ScrollTo functions

* Modify ListViewRenderer automation peer to prevent freezing on ListViews

* Allow automation to find tabs

* Temporarily ignore some of the tests which don't do much

* Make ListViews with string/value type lists work

* Add note about 29257/60478

* Use toggle button for test 30353 for UWP

* Handle getting screen bounds consistently

* Make test for G2414 use ActivateContextMenu extension method

* Simplify UI test for 31330 and make it runnable on Windows

* Add notes on failing tests

* Add query for MoreButton on G2809 test

* Ignore ActivityIndicator IsRunning test for UWP

* Use ScrollDownTo instead of ScrollForElement method on Windows

* CellsGalleryTestCellList now working on UWP

* Cells tests working on UWP

* Re-add Tap to ScrollAndTap

* Get rid of custom automation peer stuff and just fix the tests

* Viewport caching and multi-monitor support for scroll

* Modified scroll values to hopefully get this running correctly on high density screen

* Clear messages so Appearing tests don't freeze up automation on UWP

* Make test for 32230 compatible with UWP

* Make test 32615 compatible with UWP

* Use ActivateContextMenu to simplify 34561 test

* Add notes for 34912 failure

* Make 36171 test compatible with UWP tests

Add directions for running the tests locally

* PR cleanup
2017-11-10 10:52:25 +00: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
E.Z. Hart c02119606c [Android] Allow VisualElementRenderer to process Click and LongClick (#1198)
* Repro

* Run VisualElementRenderer touch events through base OnTouchEvent in addtion to GestureManager

* UWP custom renderer for 60122

* Make sure that in the future custom renderers which apply click listeners will work
2017-10-16 18:38:50 +01:00
E.Z. Hart 3896c1a7bf [Internal] Stopgap support for running UI Tests on UWP Desktop (#1067)
* First stab at getting UWP app tests running

* Implement a couple more methods (we can get all the way through the first test now)

* Add reset button to UWP Control Gallery; implement WaitForElement

* First pass at WaitForNoElement

* Make layouts available for automation queries; implement Tap(marked)

* Implement some of the keyboard methods

* Checkpoint

* Checkpoint

* More refactoring

* Forgot to save project file

* Put infrastructure for property queries in place

* Fix query parsing bug, add condition for text: query

* Implement Back(); add automation peers to Page and Label

* Implement TapCoordinates

* Fix dismiss button and make test text correct

* Fix incorrect AppRect conversion; add offsets to TapCoordinates

* Better reset

* Fill in missing 'DismissKeyboard' implementation

* Make layout renderers take up space even if they have no children

* Add ability to find TextBoxes by text contents

* DoubleTap
2017-09-19 22:18:24 +01:00
Jimmy Garrido 3fba8ff70d [Windows] Fix custom fonts not working in NavigationPage (#730)
* Fix custom fonts not working in NavigationPage

* Update nuspec

* Update PageControl.cs

fix indentation

* Add manual test
2017-09-12 13:03:27 +01:00
E.Z. Hart 1aab6ff489 Repro 58406; apply effects to fast renderers on Android (#1077) 2017-08-10 10:35:27 -07:00
E.Z. Hart f7c943dc77 [iOS] Allow Forms gestures on custom renderers for controls which already have gestures (#990)
* Repro 57114 with UI test; fix for 57114 on iOS

* Repro/UI test for Windows

* Add helpful comment for posterity

* Remove stray TODO

* Only do ShouldReceiveTouch on mobile

* Explicitly require wrapped UIView to have gesture recognizers
2017-06-20 16:38:58 +01:00
Paul DiPietro a9a6a40c67 [UWP] Respect TextBox BackgroundFocusBrush Effect (#928) 2017-05-26 12:09:00 +01:00
Rui Marinho 04211b2ba3 VSTS support (#803)
* Fix certs

* Try fix build reference

* Update to nuget 3.5

* Remove BingMapsSDK

* Revert git ignore change
2017-03-08 11:30:34 +00:00
Samantha Houts bc13d3cfee [Android] Don't crash if Control is accessed in Effect OnDetached when Page is Disposed. (#773)
* Add repro for 51505

* [Android] Don't dispose of EffectControlProvider

* Oops
2017-03-03 12:41:04 +00:00
E.Z. Hart ba7b66b83a Fix out-of-memory crashes on iOS when creating maps (#467)
* Pool map views on iOS 10 to avoid memory issues
Clean up disposal implementation for map renderer, delegate

* Enable 39489 test on iOS

* Add missing XF Maps references

* Add missing maps reference to Windows 8.1 project

* Actually enable the test for iOS

* Fix placement of Isolate override

* Don't create a new control for ImageRenderer if NewElement is null

* Reverting fixes to ViewRenderer Dispose; have to fix that in a separate PR
2017-01-12 13:43:57 -08:00
Samantha Houts 0cc2fd2b67 [UWP] Explicitly set mobile StatusBar colors to white Background/black Foreground on Light theme (#491)
* [UWP] Encapsulate MobileStatusBar

* [UWP] Set StatusBar colors on Light theme

* Add test code to override status bar color
2016-11-15 11:43:34 -08:00
Rui Marinho 08c1d1c107 [Win] Update certs (#460) 2016-10-15 13:35:16 +01:00
Samantha Houts ee3c84f051 [Win] Will arrange native children of custom renderers (opt-in) (#322)
* Add repro for 42602

* [Win] Add option to arrange native children

* [Win] Don't allocate arrangedChildren unless required
2016-09-27 11:12:49 -07:00
E.Z. Hart 53e1d99a75 Fix potential NRE accessing current application via Page.RealParent (#330)
* Fix potential NRE accessing current application via Page.RealParent

* Update Native Bindings Gallery to use MessagingCenter
2016-09-27 14:50:02 +01:00
Stephane Delcroix 85426c5d94 Native Bindings (#278)
* [C, I, A, W] Support Native Bindings

* fix tabs
2016-09-08 11:39:05 -07:00
Samantha Houts 5e553f6195 Platform Specifics (#301)
* Playing around with how the platform specifics interfaces etc. might work

* Sample implementation of iOS navigation translucency

* Very slightly reduced code

* Better vendor stuff

* Drop single-implemenation interfaces

* Generics on NavigationPage

* On-demand vendor stuff

* Remove functionally duplicate classes and make ControlGallery work again

* Namespace all the things. XAML test.

* Can use Effect to attach platform specific

* Attach Effect on PropertyChanging for XAML support!

* Rename IConfigPlatform interfaces for readability

* Some renaming to match the documents

* Split class files

* Clear out test-only code

* Re-namespace

* Added On method to rendered Elements

* Allow for removal of platform suffix, convenience methods on specific platforms

* Creating a gallery page for specifics

* Add rudimentary Platform Specifics gallery; make CollapseStyle work on UWP;
Add CollapsedPaneWidth specific property

* Toolbar now working with both collapse styles

* MDP now displaying Content title; toolbar routing around title

* Add a gallery for the iOS NavigationPage stuff

* Add Navigation Page as detail page to verify it works with new Toolbar options

* Make titlebar/toolbar background colors consistent

* ToolbarPlacement now working on NavigationPage

* Toolbar Placement working for tabbed and nav pages

* Fix bug where phone doesn't get default toolbar placement on start

* [Core] Add PS WindowSoftInputModeAdjust

[Core] Make Application extendable

* Toolbar placement now working on Nav, Tabbed, and Master pages on desktop/phone

Remove unnecessary style indirection

Fix build errors

* [A] Add PlatformConfigurationExtensions

* SetSoftInputMode test page

* [A] SetSoftInputMode

Known issue: Status bar color does not work in AdjustResize mode

* [Core] Add PS Blur

* [iOS] Configure renderer for blur

* Add test page

* Move to blur VisualElement for broader support

* Move test pages to gallery

* Update docs

* Use lazy initializer for PlatformConfigurationRegistry
2016-08-30 10:46:14 -07:00
E.Z. Hart 30c0dcb949 Fix Entry/SearchBar color issues (#306)
* Fix disappearing Entry text on UWP Anniversary Edition
Fix background color reversion bug in UWP Phone
Move SearchBar styling on UWP to its own file
Make foreground/background color changes on UWP SearchBar/Entry consistent
Fix SearchBar color toggle bug on WP8

* Temporarily moving SDK target to previous version

* Fix build error on OSX
2016-08-16 11:10:32 -07:00
E.Z. Hart b186254d1f Enable WebView to render local HTML files on WinRT platforms (#277)
* Enable WebView to render local HTML files on WinRT platforms

* Add test to demonstrate that the solution works even if
<head> isn't in the HTML string
2016-08-03 14:22:14 -07:00
E.Z. Hart 272033723e Windows image loader error handling (#260)
* Repros for various image issues

* Log image loading errors

* Better repro instructions and user interface

* Image loading tests now running on WinRT/UWP phone/tablet/desktop

* Move FailImageSource into shared project

* Move FailImageSource into shared project

* Update docs
2016-07-18 16:16:47 -07:00
kingces95 a0f0b3954e Enable warnings as errors in tests 2016-04-06 23:03:59 -07:00
E.Z. Hart 17e2a4b94d Add options for specifying layout of button text/image content
Also make the layout and layout defaults consistent across platforms
2016-03-30 16:22:35 -06:00
E.Z. Hart 1dcf5fef35 Move initialization of configuration files (if needed) to a pre-build task
Remove unneeded init scripts
2016-03-24 10:48:21 -06:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00