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

6 Коммитов

Автор SHA1 Сообщение Дата
Javier Suárez 3a57e2e020
[Enhancement] Brushes (#9220)
* Added brushes to Core, Core Gallery and the iOS implementation

* Implemented brushes on UWP

* Improved UWP brushes implementation

* Changes to improve the brushes Core Gallery samples

* Added default SolidColorBrush colors

* Improved brushes samples adding more options

* Implement brushes on Android

* Fixed Brush Background on Android ImageButton

* Initial code to add support to brushes using CSS

* Support more CSS gradient options
Added more unit tests

* Changes in Core Gallery brushes samples

* Reuse same ColorTypeConverter in the GradientBrushParser

* Fixed brush issues on specific controles (Android: Page) (iOS: Label, ImageButton, NavBar)

* Updated brushes unit tests

* Added new sample in Core Gallery
Fixed angle issue in UWP LinearGradientBrush

* Fixed UWP issue updating brushes in Buttons

* Improved UWP UpdateBackground logic in VisualElementRenderer

* Fixed UWP build errors
Fixed some UWP brushes issues

* Added WPF implementation

* Fixed issue verifying brushes in iOS VisualElementRenderer

* Fixed iOS brushes in BoxView

* Added scroll to LinearGradientPointsGallery sample

* Fixed iOS brushes size issue

* Implemented brushes in macOS

* Uncommented wrong method to update image brushes resizing the App Window

* Fixed Windows Build

* Fixed broken unit tests

* Added more comments in UWP RadialGradientBrush

* Added BrushExperimental flag

* Notify VisualElement Background changes if some Brush property have changed

* Fixed brush issue in Android Button using CornerRadius

* Fixed unnecessary border color issue applying brushes to Layouts in Android

* Fixed brushes unit tests

* Removed EditorBrowsable label in BackgroundColor until deprecate it

* - fix whitespace

* Changed IsEmpty Brush property to be abstract and implemented it in every brush.

* Changed IGradientShader to GradientShader

* Fixed BindableBrushGallery issue on iOS/macOS

* Fixed wrong iOS right RadialGradientBrush

* Fixed Brush in iOS NavBar iOS < 13

* Fixed iOS Brush on Button and Label

* Fixed Build errors

* Replace UWP Community Toolkit RadialGradientBrush class by WinUI 2.4 RadialGradientBrush

* Fixed broken unit test

* Fixed brushes issues on macOS resizing the Window or on iOS rotation, etc.

* Added the option to choose the BorderColor in the Brushes Playground

* Removed duplicated ShapeRenderer Compile line in Platform iOS csproj

* Removed unnecessary changes

* Added Visual Brush samples

* Implemented Brushes in iOS Visual Renderers

* Only show the access to the Brushes Visual sample in Android and iOS

* Added brushes support to shapes

* Fixed Build error

* Removed unnecessary changes

* Added Brushes support to Android Material ActivityIndicator

* Added brushes support to Android Visual Frame

* Updated Visual Android Renderers

* Fixed BoxView Brush issue

* Updated brush views sample to add more BoxView cases

* Added brushes tests classes

* More Brushes unit tests

* Added more controls to test in the BrushesViewGallery

* Added new Brushes sample

* Fixed build error

* Updated AnimateShapeGallery to use a Brush

* Fixed CoreGallery Core samples allowing to use the Background property

* Added Brushes platform unit tests

* - apply background color if solid brush is empty

* - fix visual checkbox

* Fixed the build

* Fixed issue on Shapes

* Updated MaterialButtonRenderer to use IsOneOf with several properties

* Removed unnecesary change in UWP Styles

* Use IsOneOf in UWP BackgroundTracker

* Added IsNullOrEmpty Brush method

* Removed unnecessary brush updates

* Added more constructors to LinearGradientBrush and RadialGradientBrush

* Fixed UWP NavBar BarBackgroundColor issue

* Removed unnecessary line in UWP BoxViewRenderer

* Fixed NRE in iOS ButtonRenderer

* Updated iOS Button SetBackground logic

* Implemented Shell FlyoutBackground

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
2020-07-17 08:44:13 -06:00
E.Z. Hart e87323b932
Fix ObjectDisposedException issues for renderers OnElementPropertyChanged (#9764)
* Update GitInfo.txt

* Fix ObjectDisposedException issues for renderers when they are saved
from garbage collection by a weak referenced property changed handler

Fixes #9431; Fixes #5560; Fixes #8607; Fixes #6587; Fixes #9412;

* Add disposed check for legacy renderers

* Add visual indication that the app is running with legacy renderers

* Revert gitinfo

* Add disposed check to VisualElementTracker

* Asyncify double dispose test

Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
2020-03-11 08:38:00 -06:00
Kevin Petit 92b1e07266 [Android] Fix various memory leaks (#8745) fixes #3332 fixes #3742
* [Android] - Fix various memory leaks

* Fix regressions.
2019-12-10 11:37:44 +00:00
kingces95 9fa04f3812
Cache Droid SDK ver (#6983)
* cache droid SDK ver

* remove lock
2019-08-03 11:04:01 -10:00
Shane Neuville 2f416f2735
Bring ImageButton API additions in line with current code (#4328)
* Bring ImageButton API additions in line with current code

* [Core] putting things in better places

* [Core] first round of changes

* fix issue with checking if bindable properties are set
2018-11-10 12:25:01 -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