Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (23 sloc) 1.06 KB
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="layout_information.Window1"
Title="LayoutInformation Sample">
<Border Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="DarkSlateBlue" Background="White" BorderThickness="1">
<!-- <Snippet1> -->
<Grid Name="myGrid" Background="LightSteelBlue" Height="150">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Name="txt1" Margin="5" FontSize="16" FontFamily="Verdana" Grid.Column="0" Grid.Row="0">Hello World!</TextBlock>
<Button Click="getLayoutSlot1" Width="125" Height="25" Grid.Column="0" Grid.Row="1">Show Bounding Box</Button>
<TextBlock Name="txt2" Grid.Column="1" Grid.Row="2"/>
</Grid>
<!-- </Snippet1> -->
</Border>
</Window>