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

60 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho f8fd2811dc
Merge branch '4.0.0' 2019-05-22 22:32:28 +01:00
Rui Marinho 38711f35d0
Merge branch '3.6.0' into 4.0.0 2019-05-22 16:23:05 +01:00
Rui Marinho 9bc0fc6b0a
[Build] Update builds, remove submodule, update AssemblyInfo with GitInfo (#6068)
* [Build] Remove submodule

* [Build] Use GitInfo to set Assembly metadata

* [Build] Remove extra prop

* [Build] Update version

* [Build] Update versions to be consistent with existing Build.Tasks

* [Build] Update build number

* [Build] make sure build tasks gets info

* [Build] Add assembly info unit test

* [Test] Refactor test for gitinfo on vsts
2019-05-22 01:06:59 +01:00
Morten Nielsen 9d3ef85539 Adds the image resouces iOS and Android gallery apps already had to UWP (#6000) 2019-05-01 09:11:46 -06: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
E.Z. Hart f1297f93d5 Re-enable "Treat warnings as errors" (#5602)
* Enable "treat warnings as errors"

* Remove unnecessary for loop

* Remove properties which already exist in base class

* Make property hiding explicit and obsolete hiding property

* Move Treat Warnings as Errors setting to props file

* Fix weird quotation changes in Xamarin.Forms.Build.Tasks.csproj

* Scrub empty WarningsAsErrors tags

* Remove unused variable

* Fix TearDown method hiding in UI tests

* Fix Id member hiding in test for Bugzilla32871

* Fix RootPage member hiding in Bugzilla51503

* Fix RooPage member hiding in Issue1483

* Disable warnings for deprecated OpenGL calls

* Fix member hiding in test view models

* Fix RootPage member hiding in Issue1931

* Fix Id member hiding in Bugzilla42620

* Fix AutomationId member hiding in Bugzilla57114

* Fix Layout member hiding in Bugzilla40911

* Remove unused variables from Bugzilla31114

* Remove unused variable

* Fix various unused variable warnings

* Disable warning to leave example code for reference

* Fix unused variable from macOS test

* Remove unused members

* Fix unused variable warnings

* Fixed unused property warnings

* Fix warnings for unused code

* Disable 'await' warning

* Remove unused variable

* Adding pragma directives for await warnings

* Remove member hiding

* Turn off global "Treat warnings as errors" in other platforms

* Use MarkerId instead of obsolete Id member

* Fix await warnings in WPF GeocoderBackend

* Add missing await

* Disable warning for unused event
2019-03-27 18:38:38 +00:00
ShaneN 24b4b554ad Merge branch '3.6.0' 2019-02-27 18:20:24 -07:00
Shane Neuville 747f7a2255 [UWP] fix so tests are compatible with UWP (#4984)
* [UWP] fix so tests are compatible with UWP

* [UWP] when UI tests run don't load issues list

* [uwp] add preload of tests back in

* added UWP Ignore
2019-02-26 16:58:40 -08:00
Matthew Leibowitz 920e2dd416 Updated all the OpenTK references to use NuGet (#4836)
* Updated all the OpenTK references to use NuGet
 - Using the same NuGet version of OpenTK across the board
 - Added a gallery factory to allow for platform-specific pages
 - Added the OpenGL galleries to Android, iOS, GTK# and WPF

* Fix the build for iOS and macOS

* Fix the modified defines for the control gallery
2019-02-12 12:59:18 +00:00
kingces95 5716f8d757 Min viable FontImageSource (#4747)
* min viable fontImageSource

* [UWP] Min viable FontImageSource (#4817)

* [UWP] font image source

* address comment

* [UWP] performance optimization of the rendering of icons font
- the minimum Dpi of the icon is 300

* char -> string; CR feedback
2019-01-03 09:46:40 -08:00
Shane Neuville 6173e6bf43 [UWP] update test nugets and establish baseline for current passing UWP tests (#3601)
* [UWP] update test nugets and ignore some test for uwp to establish baseline

* [UWP] update selenium and webdriver libraries
2018-11-21 11:48:05 +00:00
E.Z. Hart aabe44fe7d [Enhancement] Add CollectionView progress behind feature flag (#4265)
* The barest beginnings of starting a spike for LV2

* Very basic RecyclerView

* Very, very basic UICollectionView

* Start setting up galleries

* De-duplicate some gallery code

* Android horizontal layout

* Very basic horizontal/vertical text lists for iOS

* Vertical list views working in iOS, stashing while trying to figure out what the deal is
with horizontal views and frames with heights of 1

* Working on rotation issues in iOS

* Fix name of renderer in UWP; make horizontal scrolling work for horizontal
lists on UWP

* Set up gallery to generate different sizes of lists for testing

* Respond to items source updates on UWP

* Add gallery for GridLayout; Add GridLayout;
begin GridLayout implementation UWP

* Basic UWP gridness

* Add demo page for grid layouts with text;
Handle grid layout spans on UWP; handle grid layout span changes on UWP;

* Implement span updates on Android grid layouts;

* Ironed out most of the iOS text cell layout issues

* iOS vertical/horizontal text lists now working reliably;

* In progress on UWP DataTemplate stuff

* Dumping the data template into the itemsource

* Vertical list basically working with DataTemplate; horizontal list having image size issues

* Clean up names and move classes to their own files

* Adding some notes for FormsContentControl

* Rolling back platform test on UWP

* Fix Tizen build

* Fix typo and roll back old test code

* Remove old testing comments

* Make basic data templates work on Android

* Update measure to work horizontally

* Remove old testing code

* Terser rectangles

* Use nameof()

* Rename FormsContentControl to ItemContentControl

* Use CreateRenderer instead of GetOrCreateRenderer

* Clean up TemplateCodeCollectionViewGallery

* Add grid galleries for templates

* Nicer example templates

* Create gallery to test removing items from collections

* Smooth single item removal on Android

* Smooth item insertion on Android

* Observable collection item adds working on UWP

* UWP Remove

* Split files

* Add gallery for snap points; start implementation of snap points on Android;

* Move snap handling to separate class; implement Start snapping (horizontally)

* Debugging vertical overlap issues on Android

* Temporarily add IsClippedToBounds to generators to force clipping on Android

* Start and End SnapHelpers are working horizontally and vertically

* Consolidate some snap code on Android

* Mandatory Single Snapping working for Center/Start horizontally

* Throwing together scrollto gallery

* Super basic "ScrollTo" implementation for Android, plus test page

* Expand ScrollTo test harness;

* Move ScrollToRequestEventArgs to its own file

* Mostly working Carousel renderer; needs some cleanup and its own gallery pages

* Carousel gallery

* Naming cleanup

* Make parameter name consistent

* Finally some basic data template functionality for lists

* Checkpoint; sort of working

* Working out estimate size hacks

* Working out cell optimizations

* Checkpoint before some serious refactoring

* Collapsing closer to a solution; text lists and grids working;
template lists and grids working; uniform size hint mostly implemented;

* Remove awkward Update method

* No longer hard-coding list item heights estimates

* Consolidate more code

* Get rid of event on ItemsViewLayout

* Remove public NeedsEstimate stuff

* Get rid of IConstrainedCell

* Watch for Span changes on iOS

* Indexed ScrollTo on iOS

* Implement removal/insertion of items on iOS

* Handle Move, Reset, Replace on Android

* Add screens to test ScrollTo Item; implement ScrollTo Item for iOS

* ScrollTo Item working on Android, but only works for MakeVisible

* Implement Android ScrollTo Animated ScrollToPosition

* Ugly but functional non-animated scroll with ScrollToPosition

* Move Scroll logic into helper class for clarity and maintenance

* Fix Start snapping with grids (hard-coded span of 1)

* Fix next/previous row/col snapping bug for EndSnapHelper

* Remove some debug statements

* Clean up example code

* Fix missing delegate setting on CollectionView

* Add filtering example

* Watching the adapter and handling empty view from the renderer

* Add debugging for all the FindViewHolder methods

* Suuuuper basic but functional EmptyView

* Allow EmptyView to be turned on and off

* Building tests for all the EmptyView scenarios

* Set Platform on EmptyView (for now)

* Templated EmptyView on Android

* Clean up merge errors

* Require flag to use CollectionView on Android

* Require flag to use CollectionView on UWP

* Restore Label functionality commented out during testing

* Adding a note for myself

* Add flags for iOS; flags for Android CarouselView;

* Remove Calabash out-commenting

* Undo changes to DotSettings; remove outdated TODOs

* Fix formatting

* Remove debugging code; remove outdated todos; remove unnecessary comments

* Undo randon VS changes

* Include CollectionView in experimental renderer testing

* Use correct property in nameof() call

* Rename ScrollToRequestEventArgs Animate -> IsAnimated

* Rename Constrain -> ConstrainTo for consistency

* Add Core flags feature; add flag verification for CollectionView features

* Make sure no one is subclassing native CollectionView stuff without flag

* Set CollectionView flags for unit tests

* Make flags depend on Application.Current

* Fix iOS 9.3 exception when laying out CollectionView

* Use Device.Flags

* Move CV flag check to CollectionView; use Device.Flags on native platforms;

* Move classes into their own files

* Make CollectionView flag check method non-browseable

* Remove old TODO

* Remove Element.Platform sets

* stubbed toolbox entries and snippets for Carousel and Collection

* updated CV snippet to include layout

* Remove Linq using statement

* Remove unused using statement

* Turn off CollectionView in Control Gallery

* Move PropertyChangedEventArgsExtensions to internal on each platform

* Clean up debugging code

* Fix broken test setup

* Remove ToString overrides

* Fix broken test screen
Fix broken test screen

* Fix rebase errors

* Update submodule

* Fix rebase error
2018-11-13 12:49:08 +00:00
Ione Souza Junior 696646f9e7 Changed the namespace for all the Issues in the control gallery to *Xamarin.Forms.Controls.Issues* (#4234)
* Changed the namespace for all the issues to Xamarin.Forms.Controls.Issues

* Moved some classes to Control directory with namespace Xamarin.Forms.Controls to fix conflicts after namespaces changes

* Fixed missed namespace for ButtonExtension

* Fixed namespace reference of Bugzilla42602 in WindowsUniversal/CustomRenderers.cs
2018-11-06 15:00:08 -07:00
Shane Neuville 7917719c9d
ImageButton (#1974)
* ImageButton Implementation

* [Android] rename BorderBackgroundManager

* [Android] copy AspectFill changes to ImageButton

* [UITests] fix order of gallery pages to work with tests

* [Android] Account for changing image region with border/shadows

* [Android] check for api 18 and add setpadding call back in

* [Android] throw exception instead of crash when image fails to load

* Addressing issue comments and adding additional test cases to Issue demo

- fixes #1724
2018-11-03 16:45:28 -06:00
Pavel Yakovlev 2cbfaea53a [UWP] Fixes CollectionChanged events in ListView (#3323)
* fixes #3273

* [UWP] Fixes CollectionChanged events in ListView

* a wrapped collection is used only if the SourceItem is not ObservableCollection

* improve uitest

* fixed NRE in empty ListView

* added a sortable custom renderer for UItest

* minor refactoring

* fixed reset of not wrapped collections

* addressing comments

* [UWP] remove WinRT hack

* [UWP] add missing using and cleanup additional resources
2018-09-11 16:05:06 -06:00
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