Skip to content

Color vs SolidColorBrush for a StyledProperty #15581

Discussion options

You must be logged in to vote

The Background and Foreground dependency properties should take IBrush instead of Brush or Color. Then just use it like normal, eg:

<ctrl:SvgIcon Foreground="#FF0000" />
<ctrl:SvgIcon Foreground="Red" />

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LaurentInSeattle
Comment options

@timunie
Comment options

@LaurentInSeattle
Comment options

Answer selected by LaurentInSeattle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants