C# and WPF tutorial files
This commit is contained in:
47
C# Beginners/TTT/MainWindow.xaml
Normal file
47
C# Beginners/TTT/MainWindow.xaml
Normal file
@ -0,0 +1,47 @@
|
||||
<Window x:Class="WpfApplication1.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:WpfApplication1"
|
||||
mc:Ignorable="d"
|
||||
ResizeMode="NoResize"
|
||||
Title="MainWindow" Height="500" Width="500">
|
||||
|
||||
<Window.Resources>
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="Background" Value="White" />
|
||||
<Setter Property="BorderThickness" Value="0.5" />
|
||||
<Setter Property="FontSize" Value="70" />
|
||||
</Style>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid Name="Container">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<Button Click="Button_Click" x:Name="Button0_0" Grid.Column="0" Grid.Row="0" Content="X" />
|
||||
<Button Click="Button_Click" x:Name="Button1_0" Grid.Column="1" Grid.Row="0" Content="O" />
|
||||
<Button Click="Button_Click" x:Name="Button2_0" Grid.Column="2" Grid.Row="0" />
|
||||
|
||||
<Button Click="Button_Click" x:Name="Button0_1" Grid.Column="0" Grid.Row="1" />
|
||||
<Button Click="Button_Click" x:Name="Button1_1" Grid.Column="1" Grid.Row="1" />
|
||||
<Button Click="Button_Click" x:Name="Button2_1" Grid.Column="2" Grid.Row="1" />
|
||||
|
||||
<Button Click="Button_Click" x:Name="Button0_2" Grid.Column="0" Grid.Row="2" />
|
||||
<Button Click="Button_Click" x:Name="Button1_2" Grid.Column="1" Grid.Row="2" />
|
||||
<Button Click="Button_Click" x:Name="Button2_2" Grid.Column="2" Grid.Row="2" />
|
||||
|
||||
</Grid>
|
||||
|
||||
</Window>
|
||||
Reference in New Issue
Block a user