dotnet / dotnet/wpf

A more compact Style format

Open
#480 8 comments 13 reactions 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Allow us to write Styles like this:
```XAML

<Set
Foreground = "#66603a"
Background = "#fff4e4"
BorderBrush = "Red"
BorderThickness = ".5,.5,1.5,1.5"
FontFamily = "Times New Roman"
FontSize= "18"
FontWeight = "Bold"
FontStyle = "Oblique"
Padding = "5"
Margin = "10" />

<Handle MouseEnter ="Control_MouseEnter"/>

```

this is more compact and more readable than:
```XAML

<Setter Property="Control.Foreground" Value="#66603a" />
<Setter Property="Control.Background" Value="#fff4e4"/>
<Setter Property="Control.BorderBrush" Value="Red"/>
<Setter Property="Control.BorderThickness" Value=".5,.5,1.5,1.5"/>
<Setter Property="Control.FontFamily" Value="Times New Roman" />
<Setter Property="Control.FontSize" Value="18" />
<Setter Property="Control.FontWeight" Value="Bold" />
<Setter Property="Control.FontStyle" Value="Oblique"/>
<Setter Property="Control.Padding" Value="5" />
<Setter Property="Control.Margin" Value="10" />

<EventSetter Event="MouseEnter" Handler="Control_MouseEnter"/>

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.