0027350: Support for Universal Windows Platform
[occt.git] / samples / xaml / MainPage.xaml
CommitLineData
742cc8b0 1<Page
2 x:Class="uwp.MainPage"
3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5 xmlns:local="using:uwp"
6 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8 mc:Ignorable="d">
9
10 <!-- Common grid-->
11 <Grid x:Name="contentPanel" HorizontalAlignment="Center" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" MinWidth="800" MinHeight="800">
12 <Grid.RowDefinitions>
13 <RowDefinition MinHeight="40" MaxHeight="40"/>
14 <RowDefinition MinHeight="30" MaxHeight="30"/>
15 <RowDefinition MinHeight="30"/>
16 </Grid.RowDefinitions>
17
18 <!-- Grid for buttons (locates at first row of Common grid)-->
19 <Grid x:Name="buttonPanel" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Grid.Row="0">
20 <Grid.RowDefinitions>
21 <RowDefinition MinHeight="40"/>
22 </Grid.RowDefinitions>
23 <Grid.ColumnDefinitions>
24 <ColumnDefinition MinWidth="190"/>
25 <ColumnDefinition MinWidth="190"/>
26 <ColumnDefinition MinWidth="190"/>
27 <ColumnDefinition MinWidth="190"/>
28 <ColumnDefinition MinWidth="190"/>
29 </Grid.ColumnDefinitions>
30 <Button x:Name="offset" MaxHeight="30" MinHeight="30" MaxWidth="180" MinWidth="180" Content="Test offset" Grid.Row="0" Grid.Column="0" Click="OnClickOffset"/>
31 <Button x:Name="mesh" MaxHeight="30" MinHeight="30" MaxWidth="180" MinWidth="180" Content="Test mesh" Grid.Row="0" Grid.Column="1" Click="OnClickMesh"/>
32 <Button x:Name="boolean" MaxHeight="30" MinHeight="30" MaxWidth="180" MinWidth="180" Content="Test boolean operation" Grid.Row="0" Grid.Column="2" Click="OnClickBoolean"/>
33 <Button x:Name="tmpdir" MaxHeight="30" MinHeight="30" MaxWidth="180" MinWidth="180" Content="Create temp file" Grid.Row="0" Grid.Column="3" Click="OnClickBuildTemporary"/>
34 <Button x:Name="de" MaxHeight="30" MinHeight="30" MaxWidth="180" MinWidth="180" Content="Test DataExchange" Grid.Row="0" Grid.Column="4" Click="OnClickDataExchange"/>
35 </Grid>
36
37 <!-- TextBlock for label -->
38 <StackPanel Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
39 <TextBlock Text="Output:" HorizontalAlignment="Left" Grid.Row="1"/>
40 </StackPanel>
41
42 <!-- TextBlock for output information -->
43 <StackPanel Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
44 <TextBlock x:Name="Output_TextBlock" Text="" HorizontalAlignment="Left" Grid.Row="2"/>
45 </StackPanel>
46 </Grid>
47</Page>