Repository navigation
Expand file tree
/
Copy pathExpanderExample.xaml
More file actions
69 lines (69 loc) · 3.19 KB
/
Copy pathExpanderExample.xaml
File metadata and controls
69 lines (69 loc) · 3.19 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.Basics.ExpanderExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
Background="{DynamicResource WD.BackgroundBrush}">
<controls:CodeViewer Header="Expander">
<wd:WDScrollViewer>
<StackPanel Margin="20,10">
<TextBlock
Margin="0,20,0,0"
FontSize="20"
Text="Expander" />
<UniformGrid Margin="0,10" Columns="2">
<Expander wd:ElementHelper.CornerRadius="3" Header="Expander1">
<Rectangle
Width="400"
Height="300"
Fill="{DynamicResource WD.DangerBrush}" />
</Expander>
<Expander
Margin="10,0"
ExpandDirection="Up"
FlowDirection="RightToLeft"
Header="Expander1"
IsExpanded="True">
<Rectangle
Width="400"
Height="300"
Fill="{DynamicResource WD.LightBrush}" />
</Expander>
<Expander Margin="0,10" ExpandDirection="Right">
<Expander.Header>
<TextBlock Text="Expander1">
<TextBlock.LayoutTransform>
<RotateTransform Angle="90" />
</TextBlock.LayoutTransform>
</TextBlock>
</Expander.Header>
<Rectangle
Width="400"
Height="300"
Fill="{DynamicResource WD.CircularSingularSolidColorBrush}" />
</Expander>
<Expander
Margin="10"
ExpandDirection="Left"
IsExpanded="True">
<Expander.Header>
<TextBlock Text="Expander1">
<TextBlock.LayoutTransform>
<RotateTransform Angle="90" />
</TextBlock.LayoutTransform>
</TextBlock>
</Expander.Header>
<Rectangle
Width="400"
Height="300"
Fill="{DynamicResource WD.PrimaryBrush}" />
</Expander>
</UniformGrid>
</StackPanel>
</wd:WDScrollViewer>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/Basics/ExpanderExample.xaml" CodeType="Xaml" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>