forked from microsoft/WinAppDriver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControlExample.xaml
More file actions
28 lines (25 loc) · 1.29 KB
/
ControlExample.xaml
File metadata and controls
28 lines (25 loc) · 1.29 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
<UserControl
x:Class="AppUIBasics.ControlPages.ControlExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AppUIBasics"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">
<Grid HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="{x:Bind ExampleHeight}" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock x:Name="Header" Text="{x:Bind HeaderText}" Style="{ThemeResource BaseTextBlockStyle}" Margin="0,24,0,8" />
<!-- Control -->
<ContentPresenter x:Name="ControlPresenter" Content="{x:Bind Example}" HorizontalAlignment="{x:Bind HorizontalContentAlignment}" Grid.Row="1" />
<!-- XAML display -->
<Border x:Name="XamlBorder" Style="{StaticResource CodeBorderStyle}" Grid.Row="2" HorizontalAlignment="Stretch">
<ContentPresenter x:Name="XamlPresenter" Content="{x:Bind Xaml}" Style="{StaticResource CPCodeStyle}" />
</Border>
</Grid>
</UserControl>