1234567891011121314151617181920212223242526272829303132333435 |
- <Window x:Class="MyWpfApp.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:MyWpfApp"
- mc:Ignorable="d"
- Title="НеMainWindow" Height="450" Width="800">
- <Window.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="FontSize" Value="24"/>
- </Style>
- </Window.Resources>
-
-
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="3*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="80"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="40"/>
- </Grid.RowDefinitions>
- <TextBlock Text="Типа баннер" Grid.Column="0" Grid.Row="1"/>
- <Image Source="{Binding ImageSource}" Grid.Column="0" Grid.Row="0" />
- <Button Content="Выбрать изображение" Grid.Column="0" Grid.Row="1" Click="Button_Click"/>
- <TextBlock Text="Типа заголовок" Grid.Column="1" Grid.Row="0" Style="{StaticResource Zagolovok}"/>
- <TextBlock Text="Типа футер" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" TextAlignment="Center"/>
- <Frame Name="FrmMain" Grid.Column="1" Grid.Row="1" NavigationUIVisibility="Hidden"/>
- </Grid>
- </Window>
-
|