Код IT
← Каталог

Практикум WPF — клиент на Prism — Shell — окно с регионом

Фрагмент из «Практикум WPF — клиент на Prism»: Shell — окно с регионом.

xml desktopencyclopediawpf-praktikum-4 embed URL статья в энциклопедии
XML / XAML main.xml
<Window x:Class="TaskDesk.Client.Views.ShellWindow"
        Title="TaskDesk" Height="520" Width="800">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Border Padding="12" Background="#1e293b">
      <TextBlock Text="TaskDesk" Foreground="White" FontSize="18"/>
    </Border>
    <ContentControl Grid.Row="1"
                    prism:RegionManager.RegionName="ContentRegion"/>
  </Grid>
</Window>
<Window x:Class="TaskDesk.Client.Views.ShellWindow"
        Title="TaskDesk" Height="520" Width="800">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Border Padding="12" Background="#1e293b">
      <TextBlock Text="TaskDesk" Foreground="White" FontSize="18"/>
    </Border>
    <ContentControl Grid.Row="1"
                    prism:RegionManager.RegionName="ContentRegion"/>
  </Grid>
</Window>