mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
Fix wpf overview styles xaml (#209)
This commit is contained in:
@@ -513,22 +513,29 @@ Styles enable developers and designers to standardize on a particular appearance
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
x:Class="SDKSample.StyleWindow"
|
x:Class="SDKSample.StyleWindow"
|
||||||
Title="Styles">
|
Title="Styles">
|
||||||
<!-- Style that will be applied to all buttons -->
|
|
||||||
<Style TargetType="{x:Type Button}">
|
|
||||||
<Setter Property="Background" Value="Orange" />
|
|
||||||
<Setter Property="BorderBrush" Value="Crimson" />
|
|
||||||
<Setter Property="FontSize" Value="20" />
|
|
||||||
<Setter Property="FontWeight" Value="Bold" />
|
|
||||||
<Setter Property="Margin" Value="5" />
|
|
||||||
</Style>
|
|
||||||
<!-- This button will have the style applied to it -->
|
|
||||||
<Button>Click Me!</Button>
|
|
||||||
|
|
||||||
<!-- This label will not have the style applied to it -->
|
<Window.Resources>
|
||||||
<Label>Don't Click Me!</Label>
|
<!-- Style that will be applied to all buttons for this window -->
|
||||||
|
<Style TargetType="{x:Type Button}">
|
||||||
|
<Setter Property="Background" Value="Orange" />
|
||||||
|
<Setter Property="BorderBrush" Value="Crimson" />
|
||||||
|
<Setter Property="FontSize" Value="20" />
|
||||||
|
<Setter Property="FontWeight" Value="Bold" />
|
||||||
|
<Setter Property="Margin" Value="5" />
|
||||||
|
</Style>
|
||||||
|
</Window.Resources>
|
||||||
|
<StackPanel>
|
||||||
|
|
||||||
<!-- This button will have the style applied to it -->
|
<!-- This button will have the style applied to it -->
|
||||||
<Button>Click Me!</Button>
|
<Button>Click Me!</Button>
|
||||||
|
|
||||||
|
<!-- This label will not have the style applied to it -->
|
||||||
|
<Label>Don't Click Me!</Label>
|
||||||
|
|
||||||
|
<!-- This button will have the style applied to it -->
|
||||||
|
<Button>Click Me!</Button>
|
||||||
|
|
||||||
|
</StackPanel>
|
||||||
</Window>
|
</Window>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user