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

7 Коммитов

Автор SHA1 Сообщение Дата
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
Stephane Delcroix 57d507ef0b Merge branch '3.5.0' 2019-01-07 11:32:11 +01:00
E.Z. Hart 4bab273f46
Implement Android single selection in CollectionView (#4651)
* Implement Android single selection

* Fix naming conflicts with SelectionChangedEventArgs

* Split files by class; make SelectionChangedEventArgs constructors internal;
Optimizations for SelectionChangedEventArgs;
Fire selection changed event/command from property changed handler;

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

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

* Set default value for SelectedItemProperty

* Remove unnecessary null check

* Fix order of OnElementChanged and Setup/Teardown Element

* Fix project file weirdness
2018-12-26 19:16:36 -07:00
Gerald Versluis 27f83582e9 [C, iOS, AND, UWP] Color for Picker.Title (#4701)
* Implemented Core, iOS and Android

* Implemented UWP

* Processed code review feedback

* More code review feedback
And implemented reset scenarios for all platforms

* Also apply color to popup dialog on Android

- fixes #4669
2018-12-18 13:12:30 +01:00
E.Z. Hart 28948d7ef7 VisualStateManager phase 1 (#1405)
* Port from old VSM branch

* Add PS and notes

* Checkpoint: entry text UWP mostly working, need to check on background colors

* Remove irrelevant samples from the EntryDisabledStatesGallery
Make Background color work on UWP Entry with VSM

* Add platform specific for disabling legacy colors on Android

* Add OnPlatform example to visual state manager gallery

* Add example OnIdiom in Visual State Manager

* Add platform specific for disabling legacy color mode on iOS Entry

* Add gallery for Button disabled states
Handling legacy colors for Buttons on Android

* Split out disabled states galleries; disabled legacy handling for Picker

* TimePicker disabled states

* DatePicker color management on Android

* Color management for pre-AppCompat button

* Button legacy color handling on iOS

* Consolidate Platform Specifics;
legacy colors working for iOS Picker and DatePicker

* Fix broken search bar color management
SearchBar color management working with VSM
Add test page for SearchBar disabled color management
Consolidate legacy color management check code into extension method on Android

* Legacy color management for Editor on Android

* Fix legacy color stuff for SearchBar Cancel button on iOS

* C# 7 cleanup

* Add colors for Cancel Button

* Make sure VisualStateGroup collections set by styles are distinct objects

* Validation example

* Make common state names consts

* Make the Windows VSM and Forms VSM work together

* Update galleries for Windows

* Make new methods internal

* Split gallery classes and add more explanation to validation example

* Remove debugging statements

* Add a quick code-only example

* Make legacy color management work for fast button renderer

* Remove old TODO

* Update docs

* Move RunTimeNamePropertyAttribute to Xamarin.Forms.Xaml namespace

* Verify XF namespace when looking for VisualState

* Use nameof

* Make common states constants public

* Cast VisualElement directly so it crashes if the property is set on the wrong type

* Collection -> IList for VisualStateManager

* Setting fromStyle to true

* Remove extraneous `private set`

* Seal VSM classes

* Use constraints instead of ==

* Add teardown method; use constraints rather than ==

* Remove null checking with GetVisualStateGroups

* Don't explicitly initialize collections on elements

* Actually, turns out that fromStyle:false *was* correct

* Direct casts

* Use GetIsDefault check in GoToState

* Validate parents in FindTypeForVisualState

* Validate group and state names on Add

* Fixed check for setter collection

* Fix issues with "duplicate" names when VisualStateGroups declared directly on VisualElements

* Add gallery example for VSGs directly on VisualElements

* Update docs

* Fix bug where initial TextColor isn't set for FastRenderer Button

* Move to explicit VisualStateGroupList in Setter

* Fix return types for unit tests

* Using string.CompareOrdinal in GetState

* Update docs

* Add check for null/empty VisualState Name properties
2018-01-05 09:11:51 +00:00
Paul DiPietro abe2f3d1f5 [All] Implement IFontElement on Picker, DatePicker, and TimePicker (#662)
* [C] Implement IFontElement on Picker/TimePicker/DatePicker

* Add InvalidateMeasure calls

* Add behavior to macOS renderers
2017-12-12 14:02:21 +00: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