|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
6 | 6 | xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
| 7 | + xmlns:codeDisplayer="clr-namespace:CodeDisplayer;assembly=CodeDisplayer" |
7 | 8 | mc:Ignorable="d"
|
8 | 9 | d:DesignHeight="300" d:DesignWidth="300">
|
9 |
| - <StackPanel Margin="8 8 0 0"> |
10 |
| - <TextBlock>Raised controls have default shadows set, but the shadows can be overriden.</TextBlock> |
11 |
| - <StackPanel Orientation="Horizontal" Margin="0 32 0 0"> |
| 10 | + <ScrollViewer> |
| 11 | + <codeDisplayer:XamlDisplayerPanel x:Name="XamlDisplayerPanel" > |
| 12 | + <TextBlock>Raised controls have default shadows set, but the shadows can be overriden.</TextBlock> |
12 | 13 | <Button Style="{DynamicResource MaterialDesignRaisedButton}"
|
13 | 14 | >DEPTH 1</Button>
|
14 | 15 | <Button Style="{DynamicResource MaterialDesignRaisedButton}"
|
15 |
| - Margin="16 0 0 0" |
16 | 16 | materialDesign:ShadowAssist.ShadowDepth="Depth2"
|
17 | 17 | >DEPTH 2</Button>
|
18 | 18 | <Button Style="{DynamicResource MaterialDesignRaisedButton}"
|
19 |
| - Margin="16 0 0 0" |
20 | 19 | materialDesign:ShadowAssist.ShadowDepth="Depth3"
|
21 | 20 | >DEPTH 3</Button>
|
22 | 21 | <Button Style="{DynamicResource MaterialDesignRaisedButton}"
|
23 |
| - Margin="16 0 0 0" |
24 | 22 | materialDesign:ShadowAssist.ShadowDepth="Depth4"
|
25 | 23 | >DEPTH 4</Button>
|
26 | 24 | <Button Style="{DynamicResource MaterialDesignRaisedButton}"
|
27 |
| - Margin="16 0 0 0" |
28 | 25 | materialDesign:ShadowAssist.ShadowDepth="Depth5"
|
29 | 26 | >DEPTH 5</Button>
|
30 |
| - </StackPanel> |
31 |
| - <StackPanel Orientation="Horizontal" Margin="0 32 0 0"> |
32 | 27 | <Button Style="{DynamicResource MaterialDesignFloatingActionMiniButton}"
|
33 | 28 | materialDesign:ShadowAssist.ShadowDepth="Depth1"
|
34 | 29 | >1</Button>
|
35 | 30 | <Button Style="{DynamicResource MaterialDesignFloatingActionMiniButton}"
|
36 |
| - Margin="16 0 0 0" |
37 | 31 | materialDesign:ShadowAssist.ShadowDepth="Depth2"
|
| 32 | + ToolTip="This is the default depth" |
38 | 33 | >2</Button>
|
39 | 34 | <Button Style="{DynamicResource MaterialDesignFloatingActionMiniButton}"
|
40 |
| - Margin="16 0 0 0" |
41 | 35 | materialDesign:ShadowAssist.ShadowDepth="Depth3"
|
42 | 36 | >3</Button>
|
43 | 37 | <Button Style="{DynamicResource MaterialDesignFloatingActionMiniButton}"
|
44 |
| - Margin="16 0 0 0" |
45 | 38 | materialDesign:ShadowAssist.ShadowDepth="Depth4"
|
46 | 39 | >4</Button>
|
47 | 40 | <Button Style="{DynamicResource MaterialDesignFloatingActionMiniButton}"
|
48 |
| - Margin="16 0 0 0" |
49 | 41 | materialDesign:ShadowAssist.ShadowDepth="Depth5"
|
50 | 42 | >5</Button>
|
51 |
| - </StackPanel> |
52 |
| - <StackPanel Orientation="Horizontal" Margin="0 32 0 0"> |
53 | 43 | <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth1" Padding="32">DEPTH 1</materialDesign:Card>
|
54 |
| - <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth2" Margin="16 0 0 0" Padding="32">DEPTH 2</materialDesign:Card> |
55 |
| - <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth3" Margin="16 0 0 0" Padding="32">DEPTH 3</materialDesign:Card> |
56 |
| - <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth4" Margin="16 0 0 0" Padding="32">DEPTH 4</materialDesign:Card> |
57 |
| - <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth5" Margin="16 0 0 0" Padding="32">DEPTH 5</materialDesign:Card> |
58 |
| - </StackPanel> |
59 |
| - <StackPanel Orientation="Horizontal" Margin="0 32 0 0"> |
| 44 | + <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth2" Padding="32">DEPTH 2</materialDesign:Card> |
| 45 | + <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth3" Padding="32">DEPTH 3</materialDesign:Card> |
| 46 | + <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth4" Padding="32">DEPTH 4</materialDesign:Card> |
| 47 | + <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth5" Padding="32">DEPTH 5</materialDesign:Card> |
60 | 48 | <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth3" materialDesign:ShadowAssist.ShadowEdges="Bottom,Right" Padding="32">CUSTOM CLIP</materialDesign:Card>
|
61 |
| - <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth3" materialDesign:ShadowAssist.ShadowEdges="Top" Margin="16 0 0 0" Padding="32">CUSTOM CLIP</materialDesign:Card> |
62 |
| - <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth3" materialDesign:ShadowAssist.ShadowEdges="Bottom,Left" Margin="16 0 0 0" Padding="32">CUSTOM CLIP</materialDesign:Card> |
63 |
| - </StackPanel> |
64 |
| - </StackPanel> |
| 49 | + <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth3" materialDesign:ShadowAssist.ShadowEdges="Top" Padding="32">CUSTOM CLIP</materialDesign:Card> |
| 50 | + <materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth3" materialDesign:ShadowAssist.ShadowEdges="Bottom,Left" Padding="32">CUSTOM CLIP</materialDesign:Card> |
| 51 | + </codeDisplayer:XamlDisplayerPanel> |
| 52 | + </ScrollViewer> |
65 | 53 | </UserControl>
|
0 commit comments