You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently GradientView renders it's IGradientSource by filling all available space. To handle complex css gradients we should handle css property background-size which says render me using specific rectangle, not whole space. As an initial implementation, if GradientSize < available space, it should be tiled. Later, we can consider adding support for GradientPosition and GradientRepeat (analogical to css: background-position and background-repeat).
API changes
GradientView control
public Size GradientSize { get; set; }
GradientView CSS
background: linear-gradient(...); // no changes, maps to GradientSource
background-size: 100px 100px; // new property, maps to GradientSize
The text was updated successfully, but these errors were encountered:
Currently
GradientView
renders it'sIGradientSource
by filling all available space. To handle complex css gradients we should handle css propertybackground-size
which says render me using specific rectangle, not whole space. As an initial implementation, ifGradientSize
< available space, it should be tiled. Later, we can consider adding support forGradientPosition
andGradientRepeat
(analogical to css:background-position
andbackground-repeat
).API changes
GradientView control
GradientView CSS
The text was updated successfully, but these errors were encountered: