|
18 | 18 | </Grid.ColumnDefinitions>
|
19 | 19 | <smtx:XamlDisplay Key="explander_1">
|
20 | 20 | <StackPanel>
|
21 |
| - <Expander HorizontalAlignment="Stretch" |
22 |
| - Header="Expander Example 1a"> |
| 21 | + <Expander HorizontalAlignment="Stretch" Header="Expander Example 1a"> |
23 | 22 | <StackPanel Orientation="Vertical"
|
24 | 23 | TextBlock.Foreground="{DynamicResource MaterialDesignBody}"
|
25 | 24 | Margin="24,8,24,16">
|
|
28 | 27 | TextWrapping="Wrap"/>
|
29 | 28 | </StackPanel>
|
30 | 29 | </Expander>
|
31 |
| - <Expander HorizontalAlignment="Stretch" |
32 |
| - Header="Expander Example 1b"> |
| 30 | + <Expander HorizontalAlignment="Stretch" Header="Expander Example 1b"> |
33 | 31 | <StackPanel Orientation="Vertical"
|
34 | 32 | TextBlock.Foreground="{DynamicResource MaterialDesignBody}"
|
35 | 33 | Margin="24,8,24,16">
|
|
38 | 36 | TextWrapping="Wrap"/>
|
39 | 37 | </StackPanel>
|
40 | 38 | </Expander>
|
41 |
| - <Expander HorizontalAlignment="Stretch" |
42 |
| - Header="Expander Example 1c"> |
| 39 | + <Expander HorizontalAlignment="Stretch" Header="Expander Example 1c"> |
43 | 40 | <StackPanel Orientation="Vertical"
|
44 | 41 | TextBlock.Foreground="{DynamicResource MaterialDesignBody}"
|
45 | 42 | Margin="24,8,24,16">
|
|
48 | 45 | TextWrapping="Wrap"/>
|
49 | 46 | </StackPanel>
|
50 | 47 | </Expander>
|
51 |
| - |
| 48 | + <Expander HorizontalAlignment="Stretch" Header="Custom Header Padding" |
| 49 | + materialDesign:ExpanderAssist.DownHeaderPadding="35,2,24,2"> |
| 50 | + <StackPanel Orientation="Vertical" |
| 51 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 52 | + Margin="24,8,24,16"> |
| 53 | + <TextBlock Text="Your Content" /> |
| 54 | + <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." |
| 55 | + TextWrapping="Wrap"/> |
| 56 | + </StackPanel> |
| 57 | + </Expander> |
52 | 58 | </StackPanel>
|
53 | 59 | </smtx:XamlDisplay>
|
54 | 60 |
|
55 | 61 | <smtx:XamlDisplay Key="expander_2" Grid.Column="0" Grid.Row="1" Margin="4 24 0 0">
|
56 | 62 | <materialDesign:Card Background="{DynamicResource MaterialDesignBackground}">
|
57 | 63 | <StackPanel>
|
58 |
| - <Expander HorizontalAlignment="Stretch" |
59 |
| - Header="Expander Example 2a"> |
| 64 | + <Expander HorizontalAlignment="Stretch" Header="Expander Example 2a"> |
60 | 65 | <StackPanel Orientation="Vertical"
|
61 |
| - TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
62 |
| - Margin="24,8,24,16"> |
| 66 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 67 | + Margin="24,8,24,16"> |
63 | 68 | <TextBlock Text="Your Content" />
|
64 | 69 | <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
65 |
| - TextWrapping="Wrap"/> |
| 70 | + TextWrapping="Wrap"/> |
66 | 71 | </StackPanel>
|
67 | 72 | </Expander>
|
68 | 73 | <Border Background="{DynamicResource MaterialDesignDivider}" Height="1" HorizontalAlignment="Stretch" SnapsToDevicePixels="True" />
|
69 |
| - <Expander HorizontalAlignment="Stretch" |
70 |
| - Header="Expander Example 2b"> |
| 74 | + <Expander HorizontalAlignment="Stretch" Header="Expander Example 2b"> |
71 | 75 | <StackPanel Orientation="Vertical"
|
72 |
| - TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
73 |
| - Margin="24,8,24,16"> |
| 76 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 77 | + Margin="24,8,24,16"> |
74 | 78 | <TextBlock Text="Your Content" />
|
75 | 79 | <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
76 |
| - TextWrapping="Wrap"/> |
| 80 | + TextWrapping="Wrap"/> |
77 | 81 | </StackPanel>
|
78 | 82 | </Expander>
|
79 | 83 | <Border Background="{DynamicResource MaterialDesignDivider}" Height="1" HorizontalAlignment="Stretch" SnapsToDevicePixels="True" />
|
80 |
| - <Expander HorizontalAlignment="Stretch" |
81 |
| - Header="Expander Example 2c"> |
| 84 | + <Expander HorizontalAlignment="Stretch" Header="Expander Example 2c"> |
82 | 85 | <StackPanel Orientation="Vertical"
|
83 |
| - TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
84 |
| - Margin="24,8,24,16"> |
| 86 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 87 | + Margin="24,8,24,16"> |
85 | 88 | <TextBlock Text="Your Content" />
|
86 | 89 | <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
87 |
| - TextWrapping="Wrap"/> |
| 90 | + TextWrapping="Wrap"/> |
88 | 91 | </StackPanel>
|
89 | 92 | </Expander>
|
90 | 93 | </StackPanel>
|
|
102 | 105 | </TextBlock>
|
103 | 106 | </Expander.Header>
|
104 | 107 | <StackPanel Orientation="Vertical"
|
105 |
| - TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
106 |
| - Margin="8,24,16,24"> |
| 108 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 109 | + Margin="8,24,16,24"> |
107 | 110 | <TextBlock Text="Your Content" />
|
108 | 111 | <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
109 |
| - MaxWidth="180" |
110 |
| - TextWrapping="Wrap"/> |
| 112 | + MaxWidth="180" |
| 113 | + TextWrapping="Wrap"/> |
111 | 114 | </StackPanel>
|
112 | 115 | </Expander>
|
113 | 116 | <Border Background="{DynamicResource MaterialDesignDivider}" Width="1" VerticalAlignment="Stretch" SnapsToDevicePixels="True" />
|
|
120 | 123 | </TextBlock>
|
121 | 124 | </Expander.Header>
|
122 | 125 | <StackPanel Orientation="Vertical"
|
123 |
| - TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
124 |
| - Margin="8,24,16,24"> |
| 126 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 127 | + Margin="8,24,16,24"> |
125 | 128 | <TextBlock Text="Your Content" />
|
126 | 129 | <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
127 |
| - MaxWidth="180" |
128 |
| - TextWrapping="Wrap"/> |
| 130 | + MaxWidth="180" |
| 131 | + TextWrapping="Wrap"/> |
129 | 132 | </StackPanel>
|
130 | 133 | </Expander>
|
131 | 134 | <Border Background="{DynamicResource MaterialDesignDivider}" Width="1" VerticalAlignment="Stretch" SnapsToDevicePixels="True" />
|
|
138 | 141 | </TextBlock>
|
139 | 142 | </Expander.Header>
|
140 | 143 | <StackPanel Orientation="Vertical"
|
141 |
| - TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
142 |
| - Margin="8,24,16,24"> |
| 144 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 145 | + Margin="8,24,16,24"> |
143 | 146 | <TextBlock Text="Your Content" />
|
144 | 147 | <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
145 |
| - MaxWidth="180" |
146 |
| - TextWrapping="Wrap"/> |
| 148 | + MaxWidth="180" |
| 149 | + TextWrapping="Wrap"/> |
| 150 | + </StackPanel> |
| 151 | + </Expander> |
| 152 | + <Border Background="{DynamicResource MaterialDesignDivider}" Width="1" VerticalAlignment="Stretch" SnapsToDevicePixels="True" /> |
| 153 | + <Expander ExpandDirection="Right" materialDesign:ExpanderAssist.RightHeaderPadding="0,35,0,5"> |
| 154 | + <Expander.Header> |
| 155 | + <TextBlock Text="Custom Header Padding" RenderTransformOrigin=".5,.5"> |
| 156 | + <TextBlock.LayoutTransform> |
| 157 | + <RotateTransform Angle="90" /> |
| 158 | + </TextBlock.LayoutTransform> |
| 159 | + </TextBlock> |
| 160 | + </Expander.Header> |
| 161 | + <StackPanel Orientation="Vertical" |
| 162 | + TextBlock.Foreground="{DynamicResource MaterialDesignBody}" |
| 163 | + Margin="8,24,16,24"> |
| 164 | + <TextBlock Text="Your Content" /> |
| 165 | + <TextBlock Opacity=".68" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." |
| 166 | + MaxWidth="180" |
| 167 | + TextWrapping="Wrap"/> |
147 | 168 | </StackPanel>
|
148 | 169 | </Expander>
|
149 | 170 | </StackPanel>
|
|
0 commit comments