added some practice examples
This commit is contained in:
44
20241107/WpfApp2/MainWindow.xaml
Normal file
44
20241107/WpfApp2/MainWindow.xaml
Normal file
@@ -0,0 +1,44 @@
|
||||
<Window x:Class="WpfApp2.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:WpfApp2"
|
||||
xmlns:userControls="clr-namespace:WpfApp2.View.UserControls"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="70"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
<RowDefinition Height="20"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Rectangle Grid.Row="0">
|
||||
<Rectangle.Fill>
|
||||
<SolidColorBrush Color="Red">
|
||||
|
||||
</SolidColorBrush>
|
||||
</Rectangle.Fill>
|
||||
</Rectangle>
|
||||
<userControls:MenuBar></userControls:MenuBar>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="20*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="60*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="20*"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Rectangle Fill="LightGray" Grid.Column="0"></Rectangle>
|
||||
<Rectangle Fill="Gray" Grid.Column="1"></Rectangle>
|
||||
<Rectangle Fill="DarkGray" Grid.Column="2"></Rectangle>
|
||||
</Grid>
|
||||
|
||||
|
||||
|
||||
<Rectangle Grid.Row="2" Fill="Green"></Rectangle>
|
||||
</Grid>
|
||||
|
||||
</Window>
|
||||
Reference in New Issue
Block a user