maui-linux/Xamarin.Forms.Core.UnitTests/StyleSheets
Stephane Delcroix a2b836110b
[CSS] allow mapping css prop to multiple BPs (#3437)
To allow mapping a single CSS property to multiple controls, we so far
relied on extracting the BindableProperties to static helper classes,
and implementing an interface for accessors, and eventually change
handlers.

That extraction works well, and is actually a good pattern, as long as:
 - the extracted BPs share the same PropertyName,
 - default value, and
 - return type, obiously

As the CSS `color` property has to map to both `TextColor` and `Color`
BPs, the property extraction wasn't possible.

This change adds the capability to map a single CSS property to
multiples BPS, when extraction isn't possible. Whenever the extraction
to an interface is possible, that behavior is strongly encouraged.
2018-07-31 09:18:54 +02:00
..
IStylableTest.cs [CSS] allow mapping css prop to multiple BPs (#3437) 2018-07-31 09:18:54 +02:00
MockStylable.cs Stylesheets (#1207) 2017-12-20 10:47:50 +01:00
SelectorTests.cs Stylesheets (#1207) 2017-12-20 10:47:50 +01:00
StyleTests.cs [CSS] only cascade inheritable properties (#1767) 2018-02-01 12:51:46 +01:00