I suggest you ...

Make XAML less verbose

There are many places in XAML, where `ContentPropertyAttribute` would make xaml less verbose.

Most notoric example is Style's Setter.Value.

<Setter Property="Foreground">
<LinearGradientBrush>...</LinearGradientBrush>
</Setter>

instead of:
<Setter Property="Foreground">
<Setter.Value>
<LinearGradientBrush>...</LinearGradientBrush>
</Setter.Value>
</Setter>

Please, review every class supposed to be instanciated in XAML and add ContentPropertyAttribute if it makes sense.

2 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
liero shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base