|
10 | 10 | Loaded="SampleCodePresenter_Loaded" |
11 | 11 | mc:Ignorable="d"> |
12 | 12 |
|
13 | | - <Grid Background="{x:Bind Background, Mode=OneWay}" |
14 | | - BorderBrush="{x:Bind BorderBrush, Mode=OneWay}" |
15 | | - BorderThickness="{x:Bind BorderThickness, Mode=OneWay}" |
16 | | - CornerRadius="{x:Bind CornerRadius, Mode=OneWay}"> |
| 13 | + <Grid |
| 14 | + Background="{x:Bind Background, Mode=OneWay}" |
| 15 | + BorderBrush="{x:Bind BorderBrush, Mode=OneWay}" |
| 16 | + BorderThickness="{x:Bind BorderThickness, Mode=OneWay}" |
| 17 | + CornerRadius="{x:Bind CornerRadius, Mode=OneWay}"> |
17 | 18 | <ScrollViewer |
18 | 19 | x:Name="CodeScrollViewer" |
19 | 20 | VerticalAlignment="{x:Bind VerticalContentAlignment, Mode=OneWay}" |
20 | 21 | HorizontalScrollBarVisibility="Auto" |
21 | 22 | HorizontalScrollMode="Auto" |
| 23 | + Loaded="CodeScrollViewer_Loaded" |
22 | 24 | VerticalScrollBarVisibility="Auto" |
23 | | - VerticalScrollMode="Auto" |
24 | | - Loaded="CodeScrollViewer_Loaded"> |
| 25 | + VerticalScrollMode="Auto"> |
25 | 26 | <ContentPresenter |
26 | 27 | x:Name="CodePresenter" |
27 | 28 | Padding="16,0,16,16" |
28 | 29 | Loaded="CodePresenter_Loaded" /> |
29 | 30 | </ScrollViewer> |
30 | | - <Border x:Name="CopyButtonBorder" |
31 | | - Margin="0,0,8,0" |
32 | | - CornerRadius="{ThemeResource ControlCornerRadius}" |
33 | | - Background="{ThemeResource ControlOnImageFillColorDefaultBrush}" |
34 | | - HorizontalAlignment="Right" |
35 | | - VerticalAlignment="Top" |
36 | | - Width="30" Height="30"> |
37 | | - <local:CopyButton x:Name="CopyCodeButton" |
38 | | - Click="CopyCodeButton_Click" |
39 | | - Content="" /> |
| 31 | + <Border |
| 32 | + x:Name="CopyButtonBorder" |
| 33 | + Margin="0,0,8,0" |
| 34 | + HorizontalAlignment="Right" |
| 35 | + VerticalAlignment="Top" |
| 36 | + Background="{ThemeResource ControlOnImageFillColorDefaultBrush}" |
| 37 | + CornerRadius="{ThemeResource ControlCornerRadius}"> |
| 38 | + <local:CopyButton |
| 39 | + x:Name="CopyCodeButton" |
| 40 | + Click="CopyCodeButton_Click" |
| 41 | + Content="" /> |
40 | 42 | </Border> |
41 | 43 | <VisualStateManager.VisualStateGroups> |
42 | 44 | <VisualStateGroup x:Name="SampleProgrammingLanguageState"> |
|
0 commit comments