-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
41 lines (36 loc) · 1.4 KB
/
App.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Application
x:Class="SO_75067133.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SO_75067133"
StartupUri="MainWindow.xaml">
<Application.Resources>
<Style x:Key="Style1" TargetType="Grid">
<Setter Property="Background">
<Setter.Value>
<VisualBrush Stretch="None">
<VisualBrush.Visual>
<local:MyUserControl />
</VisualBrush.Visual>
</VisualBrush>
</Setter.Value>
</Setter>
</Style>
<VisualBrush x:Key="Brush" Stretch="None">
<VisualBrush.Visual>
<local:MyUserControl />
</VisualBrush.Visual>
</VisualBrush>
<Style x:Key="Style2" TargetType="Grid">
<Setter Property="Background" Value="{StaticResource Brush}" />
</Style>
<Style x:Key="Style3" TargetType="Grid">
<Setter Property="Background" Value="Red" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{StaticResource Brush}" />
</Trigger>
</Style.Triggers>
</Style>
</Application.Resources>
</Application>