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

373 Коммитов

Автор SHA1 Сообщение Дата
E.Z. Hart 98d9245eb4
Remove requirement for CollectionView Experimental flag (#7907)
* CollectionView_Experimental is dead; long live CarouselView_Experimental!

* Change CollectionView enabling button labels to CarouselView for CarouselView tests

* Fix UI tests for Carousel

* Honor the CollectionView_Experimental flag for CarouselView

* Update Issue6963.cs

* Update Issue7817.xaml.cs

* Remove collection view flag settings
2019-10-16 09:44:47 -06:00
Javier Suárez Ruiz 8da3ccf8e8 Fixed issue setting Position in CarouselView (#7901) fixes #7865
* Added sample file

* Updated sample

* Fixed the issue on Android and iOS

* Updated IsScrolling property from UWP CarouselView renderer

* Added repro sample instructions

* Update Issue7865.xaml.cs

* [iOS] Update IsScrolling from renderer
2019-10-15 15:37:40 +01:00
Javier Suárez Ruiz ded907b00e Fixed build error (merge) (#8024) 2019-10-15 14:18:03 +01:00
Stephane Delcroix 8b356f6607 Merge branch '4.2.0' into 4.3.0 2019-10-15 14:12:49 +02:00
Javier Suárez Ruiz 4658494caa Fixed ItemSpacing, NumberOfSideItems, PeekAreaInsets and Snap in UWP CarouselView. (#7930) 2019-10-14 18:07:11 -06:00
E.Z. Hart 333d3a015e
Move CollectionView UWP implementation to generics (#7911)
* Clean up implementation with generics and get rid of awkward casts

* Save some unnecessary casts and switching on CarouselView
2019-10-11 17:11:42 -06:00
Javier Suárez Ruiz 3680f95786
Fixed crash on UWP Switch (UpdateThumbColor) (#7932) 2019-10-11 13:43:08 +02:00
Javier Suárez Ruiz cd75d99d04 Revert "Fixed crash on UWP Switch (UpdateThumbColor)"
This reverts commit 10a0f4e0b3.
2019-10-10 18:09:50 +02:00
Javier Suárez Ruiz 10a0f4e0b3 Fixed crash on UWP Switch (UpdateThumbColor) 2019-10-10 18:08:43 +02:00
E.Z. Hart 88dfa6c2ed
[UWP] [iOS] Verify selected items exist when updating native selections (#7902)
* Add selection synchronization tests

* Resync native selection after ItemsSource is updated

* Update native selection on iOS when changing ItemsSource; prevent crash when
selection contains items not in source; fixes #6963

* Automated test
2019-10-10 09:16:38 -06:00
E.Z. Hart fd9644f3f2 Implement grouping for UWP CollectionView (#7697)
* Implement grouping for UWP CollectionView

* Clean up CollectionViewSource on teardown
2019-10-09 11:56:18 -06:00
Stephane Delcroix 3108ee3d4c Merge branch '4.2.0' into 4.3.0 2019-10-02 15:08:09 +02:00
Gerald Versluis aa3c676f16 Fixed clipping when using FontImageSource (#7607) fixes #6491 fixes #7469 fixes #7414
* Fixed issue

* Fixes #7469
2019-10-02 08:57:22 +01:00
Javier Suárez Ruiz 443bb1d9ec Fixed crash setting the MainPage on teh OnStart method on UWP (#7749) fixes #7537 2019-10-02 08:56:00 +01:00
Javier Suárez Ruiz 02c51722e1 [UWP] Fix crash on Switch Renderer when a custom renderer provides Color objects instead of Brush (#7760) fixes #7253
* Fixed 7253 -  UWP Switch custom Renderer using custom colors throws exception

* Fixed merge error in the code
2019-10-02 08:53:14 +01:00
E.Z. Hart f524502aee [UWP] Make EmptyView work in UWP CarouselView (#7724)
* Make EmptyView work in UWP CarouselView

* Update Xamarin.Forms.Core/Items/CarouselView.cs

Co-Authored-By: Samantha Houts <samhouts@users.noreply.github.com>
2019-10-01 17:12:08 +01:00
Shane Neuville 09f4375b97 UWP fixes for lower target sdk on VS 2017 (#7722)
* Set UWP to lower target framework

* - mono version

* - dotnet core

* - dotnet core

* - dotnet core

* - mono

* - remove sdks

* - new sdk for mac targets

* - mono path

* - fix mono version

* - update unit test
2019-09-29 00:42:14 +01:00
E.Z. Hart 3a47d54f42 [UWP] Reduce allocations and fix memory leak in CollectionView (#7608)
* Checkpoint

* Fix leak caused by CollectionViewSource

* Simplify ItemTemplateEnumerator

* Reduce allocations in simple IList source scenarios on UWP

* Revert debugging changes
2019-09-27 11:41:04 -06:00
E.Z. Hart d2beb36c57 Finish ScrollTo implementations for CollectionView on UWP (#7509) partially implements #3172
* Finish ScrollTo implementations for CollectionView on UWP

* Fix NRE when attempting to scroll to index greater than source length
2019-09-20 23:03:55 +01:00
Morten Nielsen aeafec9ff6 Adds UWP support to Shell (#6015)
* Some basics to get started

* more renderers

* Fix titlebar color

* More shell stuff working

* Hacked some more UI in

* Fix null ref issue

* Move renderer registration outside common code (for now)

* Re-write of the renderers to better use a cleaner UWP approach

* Moved functionality around, bug fixesetc

* Added null check

* Added null-check on appearance and use default colors as fallback

* Handle change in flyout behavior to correctly turn the flyout on/off

* Handle the TabBarIsVisible property

* code formatting

* Ensure FlyoutHeader isn't show if the app starts up with a minimal pane

*  Throw if used on versions lower than Windows 10 1809

* Added null-check for when ShellContent isn't set

* Support tabs in FlyoutItems with Display AsMultipleItems by using the generated FlyoutGroupings instead

* Improve pane behavior and styling

* Undo Android change used during testing

* Fix platform support check

* Use FileImageSourcePathConverter on NavigationViewItem instead of a custom control (so I deleted ShellNavigationViewItemRenderer which is no longer needed).
Ensure `FileImageSourcePathConverter` won't throw if it didn't get a FileImageSource.
Move the flyout data templates into a resource so they can be overridden and compiled.

* Delete renamed file

* Use a resource instead of parsing a string template

* Handle search box property changes

* Update page title on property change

* Update bottombar when shellitems change

* Guard against API usage not present

* Platform check comments

* Fix problem running in release mode (use Bindable to generate XamlMetadata

* Trigger rebind of menu items source when collection changes

* Added support for Toolbar

* Fix searchbox behavior (still lacks expand/collapse feature)

* Add overload for defining the navigation transition

* Use different navigation transitions based on navigatin direction

* Hides header with show / hide nav command

* collapses header area on hide nav

* Move to use WinUI

* Fix runtime issues after merge.

* - rebase fixes

* - rebase fixes

* - fix spaces/tabs

* - flags, hide apis, delete assembly info

* - set flag on UWP CG

* - expose renderer creations and make them all public

* - formatting fixes

* - address PR comments

* - fix header so it's full width and swappable
2019-09-17 23:26:56 +01:00
Javier Suárez Ruiz d8e3e5c544 Implement CarouselView on UWP (#7503)
* Implemented CarouselView on UWP

* Implemented CurrentItem on Carousel UWP

* Fixed ArgumentOutOfRangeException with the Carousel position

* Removed code to update the CurrentItem on UWP (review it to improve)
2019-09-17 21:33:55 +01:00
E.Z. Hart ef84417c8e Remove extra brace; fixes #7545 (#7546) 2019-09-17 09:41:00 +01:00
E.Z. Hart 8b346079e2 Implement EmptyView on UWP (#7438) 2019-09-16 15:02:58 +02:00
E.Z. Hart a68dd21dc0 Remove extra properties from CarouselView API (#7456)
* Remove Header/Footer properties from CarouselView

* Limit CarouselView to LinearItemsLayout

* Rework inheritance for UWP

* Split files by class

* Fix up Tizen renderer
2019-09-13 10:55:27 +01:00
E.Z. Hart eafb795412 Implement Move, Replace, and Reset for UWP CollectionView collection changes (#7384) 2019-09-09 13:00:04 +02:00
Shane Neuville f51099c382
[UWP] RefreshView (#7319)
* UWP Swipe Refresh implementation

* - target platform warnings for UWP

* - move dictionary registration to code

* - remove SkipMicrosoftUIXamlCheckTargetPlatformVersion
2019-09-07 01:11:41 -06:00
ksemenenko e85fcbcb87 ListView.Scrolled (#7157)
fixes #4323
2019-08-28 13:49:20 -07:00
Gerald Versluis 938a840e68
Make Label display HTML from a string (#4527)
* Use UpdateText

* Added missing helper method and UI test

* Added missing helper for UWP

* Added csproj entry for helper

* Resolved rebase conflicts

* Update LabelRenderer.cs

* Update LabelRenderer.cs

* Update LabelRenderer.cs

* iOS Merge error fix

* Feedback

* - uwp fixes

* - android fix empty text

* - ios fix null and setting text when texttype starts as html

* - set _perfectSizeValid = false; after changed AttributedText

Setting the AttributedText causes GetDesiredSize to get called which sets _perfectSizeValid to true but at this point this frame still hasn't adjusted to any size change from *LayoutSubViews*. This resets _perfectSizeValid so after the AttributedText set the desiredsize can get pulled again

* Renamed PlainText to Text

* Fixed initial no HTML styling
2019-08-28 13:25:02 +02:00
E.Z. Hart 2785110ee8 Disable UWP CollectionViewSource CurrentItem synchronization (#7267) fixes #7194
* Disable UWP CollectionViewSource CurrentItem synchronization
Fixes #7194

* Remove unnecessary stuff from test page
2019-08-27 14:59:56 +01:00
E.Z. Hart 204d6ddb93 Fix crash with nested CollectionViews on UWP (#7273) fixes #6620
Closes #6620
2019-08-27 14:57:01 +01:00
E.Z. Hart 61fadc4769 Basic Header/Footer for UWP CollectionView (#7237) 2019-08-22 12:10:12 +01:00
Samantha Houts f17fac7b9e Merge branch '4.2.0' 2019-08-16 17:54:38 -07:00
Samantha Houts 39de9f0b13 Merge branch '4.1.0' into 4.2.0 2019-08-16 17:51:53 -07:00
Edwin Wachs 7a9b54dae9 [UWP] Multi-window (#2432)
* Changes to support multiple windows on UWP

* Locker on Layout.cs to prevent concurrency

* Changes on UnitTests to work with multi-window

* implemented Xamarin.Forms.Core and UAP Element.Dispatcher

* Implementation on each platform

* Implementation on each platform

* Improved Element casting for Dispatcher utilization

* Correction of the items presented in the code review

* Control Gallery for Multiple Window and Code Review

* [UnitTests]Add missing file

* Correction for Unit Tests

* Correction for Unit Tests

* Correction for Unit Tests - Removed ThreadStatic in Ticker

* removed thread static

* removed thread static into application class

* Update Control Gallery

* Code Review (Changes)

* Comment

* Adjust StackOverflow when close the app

* Performace improvements

* - fix merge and ui test performance

* Name of method and adjust on NavigationProxy

* Adjustments in the implementation of the DispatcherManager

* Updated the ListProxy method and adjust the initialization of dispacther on page.

* Remove GetDispacther method from IPlatformServices and some adjusments of code review.

* Adjust after merge on NavigationProxy

* Register IDispatcherProvider on Xamarin.Forms.Core.UnitTests

* Adjustments for correct unit tests operation

* Adjustments for correct unit tests operation

* remove spaces

* Adjust for UITests

* Remove IsInvokeRequired and adjusted de instance of s_resolutionList

* Remove lock() on ResolveLayoutChanges method

* Make IDispatcher implementations internal

* Removed Dispatcher association from Element and Page class. Removed Child Assignment in Element Class and ThreadStatic Removal from NavigationProxy Property

* Remove DispatcherManager; contain thread static to UWP implementation

* Make dispatcher lazy

* MockDispatcherProvider on Xaml.UnitTests

* Add mock Dispatcher and DispatcherProvider for XAML unit tests

* Revert "Add mock Dispatcher and DispatcherProvider for XAML unit tests"

This reverts commit 134320d348a3812e44507ae0b50459c8f43478e9.

* Add MockDispactcherProvider on Pager.UnitTests

* Revert covariance change

* Centralize dispatcher checking logic

* Add a fallback dispatcher for platforms without a registered DispatcherProvider

* Remove Dispatcher/DispatcherProvider from project

* Allow UI test pages which use ListProxy to get a dispatcher in UITest mode

* Prevent crash instantiating UITest version of Issue2004

* Removed unnecessary old codes

* Clean up whitespace changes

* Remove unused method
2019-08-15 11:36:38 -06:00
Samantha Houts 79467994e7 Merge branch '4.2.0' 2019-08-01 13:34:34 -07:00
Samantha Houts 97d7ebceba Merge branch '4.1.0' into 4.2.0 2019-08-01 13:32:14 -07:00
Gerald Versluis 18f071ad19
[UWP] The SelectedItem in a ListView is not highlighted when set while constructing a page (#6973)
* Enable selection of an item from constructor

* Update ListViewRenderer.cs

* Update ListViewRenderer.cs

* Update ListViewRenderer.cs
2019-08-01 13:28:29 +02:00
Gerald Versluis b334548055 Enable SourceLink for Xamarin.Forms (#6886) fixes #2165
* Added sourcelink config to Directory.Build.props

* Only enable SourceLink for release builds

* Added debugtypes to mac projects

* pdb in nupkg files

* Revert "Added debugtypes to mac projects"

This reverts commit 7235bebdc42abdd9b747cd983357c7d832f91b39.

* Update Directory.Build.props

* Update Directory.Build.props

* Revert "Update Directory.Build.props"

This reverts commit 1c5b66c6e93fe55b66a028237a8b7f3b3629a804.

* Added DebugType portable to csprojs

* Removed all redundant csproj debugtype tags
2019-08-01 11:07:38 +01:00
ShaneN 278c089f3a Merge branch 4.2.0 2019-07-31 11:44:31 -06:00
Stephane Delcroix 857ec92860 Merge branch '4.1.0' into 4.2.0 2019-07-30 16:32:14 +02:00
Stephane Delcroix 2934628ff8 Merge branch '4.0.0' into 4.1.0 2019-07-30 16:31:31 +02:00
Stephane Delcroix 9395dd5c94 [UWP] Register the Xaml assembly (#7004)
the Xaml asssembly need to be scanned for DependecyServices. The
code in place intended it, but was referring to the wrong type...

 - fixes #6974
2019-07-30 09:45:11 +02:00
E.Z. Hart 880f368dda UWP CollectionView cleanup (#6928)
* Move files to CollectionView folder for consistency with other platforms
Move SelectableItemsViewRenderer to Setup/Teardown pattern
Fix event handler naming
Use Is method for property changed check

* Rebase cleanup
2019-07-29 16:50:11 -07:00
Pavel Yakovlev 58d4d6a33c [UWP] Fixes default button padding (#6455)
fixes #6450
2019-07-29 16:49:18 -07:00
E.Z. Hart d188ecc785 Implement DataTemplateSelector support for CollectionView on UWP (#6918)
fixes #6898
2019-07-29 10:10:20 -07:00
Andrei Nitescu 6ee4ec6974 ITextAlignmentElement VerticalTextAlignment (Entry, SearchBar, EntryCell) (#6463) 2019-07-18 11:59:06 -07:00
ksemenenko bad6d9018f [Enhancement] Implements CharacterSpacing (#5167)
- fixes #4855 

* TextElement.LetterSpacingProperty

ButtonRenderer

DatePickerRenderer

EditorRenderer

EntryRenderer.cs

LabelRenderer

PickerRenderer

SearchBarRenderer

TimePickerRenderer

fix renderers

LetterSpacingElement

Extensions ToEm

* iOS

Picker

* UWP

* removal of an unnecessary condition

* Remove ILetterSpacingElement.OnLetterSpacingChanged

Fix for PickerRenderer for Android

* Move LetterSpacing to TextElement

* UWP

* Span

* Span and LetterSpacing

* Tests

* fixes for renderers

* Renderers

* LetterSpacingGallery

* Android fixes

* Extensions

* delete macos code

* iOS and UWP Renderers

* Renderers for iOS

* Picker.Items

* UWP

* fix merge

* Renderers

* iOS renderers

* PickerRenderer.cs

* Material

* Material Renderer

* Picker placeholder

* InvalidateMeasure

* Update Xamarin.Forms.Core/Span.cs

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

* Update Xamarin.Forms.Core/ITextElement.cs

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

* remove LetterSpacing tests

* style

* Rename LetterSpacing to CharacterSpacing

* Update Xamarin.Forms.Controls/GalleryPages/CharacterSpacingGallery.xaml

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

* Update Xamarin.Forms.Material.Android/MaterialButtonRenderer.cs

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

* Update Xamarin.Forms.Material.Android/MaterialButtonRenderer.cs

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

* Update Xamarin.Forms.Material.Android/MaterialButtonRenderer.cs

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

* Update Xamarin.Forms.Material.Android/MaterialButtonRenderer.cs

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* SearchHandler

* UAP CharacterSpacing

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

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>
2019-07-18 14:28:23 +02:00
Andrei Nitescu 8cb36f4bef Label padding (#6299)
* Label padding

* Probably the biggest dilemma in the world
fixes #4784
2019-07-16 09:06:01 -07:00
Stephane Delcroix fabd3e5ef2 Merge branch '4.2.0' 2019-07-12 16:23:52 +02:00
Ravinder Jangra 8931dbd8ee 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
2019-07-11 16:03:12 -07:00