Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions WinUIGallery/Controls/SampleCodePresenter.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,35 @@
Loaded="SampleCodePresenter_Loaded"
mc:Ignorable="d">

<Grid Background="{x:Bind Background, Mode=OneWay}"
BorderBrush="{x:Bind BorderBrush, Mode=OneWay}"
BorderThickness="{x:Bind BorderThickness, Mode=OneWay}"
CornerRadius="{x:Bind CornerRadius, Mode=OneWay}">
<Grid
Background="{x:Bind Background, Mode=OneWay}"
BorderBrush="{x:Bind BorderBrush, Mode=OneWay}"
BorderThickness="{x:Bind BorderThickness, Mode=OneWay}"
CornerRadius="{x:Bind CornerRadius, Mode=OneWay}">
<ScrollViewer
x:Name="CodeScrollViewer"
VerticalAlignment="{x:Bind VerticalContentAlignment, Mode=OneWay}"
HorizontalScrollBarVisibility="Auto"
HorizontalScrollMode="Auto"
Loaded="CodeScrollViewer_Loaded"
VerticalScrollBarVisibility="Auto"
VerticalScrollMode="Auto"
Loaded="CodeScrollViewer_Loaded">
VerticalScrollMode="Auto">
<ContentPresenter
x:Name="CodePresenter"
Padding="16,0,16,16"
Loaded="CodePresenter_Loaded" />
</ScrollViewer>
<Border x:Name="CopyButtonBorder"
Margin="0,0,8,0"
CornerRadius="{ThemeResource ControlCornerRadius}"
Background="{ThemeResource ControlOnImageFillColorDefaultBrush}"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Width="30" Height="30">
<local:CopyButton x:Name="CopyCodeButton"
Click="CopyCodeButton_Click"
Content="&#xE8C8;" />
<Border
x:Name="CopyButtonBorder"
Margin="0,0,8,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Background="{ThemeResource ControlOnImageFillColorDefaultBrush}"
CornerRadius="{ThemeResource ControlCornerRadius}">
<local:CopyButton
x:Name="CopyCodeButton"
Click="CopyCodeButton_Click"
Content="&#xE8C8;" />
</Border>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="SampleProgrammingLanguageState">
Expand Down