Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <!--<Snippet2>--> | |
| <StackPanel | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| x:Class="GridLoc.Pane1" | |
| > | |
| <!--</Snippet2>--> | |
| <!--<Snippet1>--> | |
| <Grid Name="grid" ShowGridLines ="false"> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="Auto"/> | |
| <ColumnDefinition Width="*"/> | |
| </Grid.ColumnDefinitions> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="Auto"/> | |
| <RowDefinition Height="Auto"/> | |
| <RowDefinition Height="Auto"/> | |
| <RowDefinition Height="Auto"/> | |
| <RowDefinition Height="Auto"/> | |
| </Grid.RowDefinitions> | |
| <TextBlock Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="0" FontSize="24">Grid | |
| </TextBlock> | |
| <TextBlock Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="1" FontSize="12" | |
| Grid.ColumnSpan="2">The following buttons and text are positioned using a Grid. | |
| </TextBlock> | |
| <Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="2" Background="Pink" | |
| BorderBrush="Black" BorderThickness="10">Button 1 | |
| </Button> | |
| <TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="2" FontSize="12" | |
| VerticalAlignment="Center" TextWrapping="WrapWithOverflow">Sets the background | |
| color. | |
| </TextBlock> | |
| <Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="3" Foreground="Red"> | |
| Button 2 | |
| </Button> | |
| <TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="3" FontSize="12" | |
| VerticalAlignment="Center" TextWrapping="WrapWithOverflow">Sets the foreground | |
| color. | |
| </TextBlock> | |
| <Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="4"> | |
| <Image Source="data\flower.jpg"></Image> | |
| </Button> | |
| <TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="4" FontSize="12" | |
| VerticalAlignment="Center" TextWrapping="WrapWithOverflow">Adds an image as | |
| the button's content. | |
| </TextBlock> | |
| </Grid> | |
| <!--</Snippet1>--> | |
| </StackPanel> |