Open StephaneDelcroix opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Description
The string syntax for Brush, used in Xaml through BrushTypeConverter isn't formalised, described, or documented. We have a few tests for it, but that's it. There's no history of this being supported in other XAML platforms, but it is supported in CSS and our syntax is inspired from there.
This document tries to formalise the syntax so it can be used to rewrite the TypeConverter, provide a compiled-to-il version and as a start of a documentation.
Colors(as defined in the ColorTypeConverter) :
LinearGradient(same syntax as CSS) :
radialGradient:
brush:
Syntax we will stop supporting
We found these syntax in some test and examples. They do not match the CSS one, provide no additional capability and can be confusing (opacity vs color stop):
(Public) API Changes
While we're at it, we plan to remove
public const
strings andpublic
nestedclass
from `BrushTypeConverterUsage Scenarios
/
Backward Compatibility
See discontinued syntax
Difficulty
Medium