93 lines
5.6 KiB
XML
93 lines
5.6 KiB
XML
<base:BaseView x:Class="DTS.Viewer.MainViewLite"
|
|
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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
|
|
xmlns:interactionRequest="clr-namespace:Microsoft.Practices.Prism.Interactivity.InteractionRequest;assembly=Microsoft.Practices.Prism.Interactivity"
|
|
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common"
|
|
xmlns:classes="clr-namespace:DTS.Common.Classes;assembly=DTS.Common"
|
|
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
|
|
xmlns:dialogs="clr-namespace:DTS.Common.Dialogs;assembly=DTS.Common"
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common">
|
|
|
|
<i:Interaction.Triggers>
|
|
<interactionRequest:InteractionRequestTrigger SourceObject="{Binding NotificationRequest, Mode=OneWay}">
|
|
<dialogs:PopupWindowAction IsModal="True" StartupPosition="CenterScreen"/>
|
|
</interactionRequest:InteractionRequestTrigger>
|
|
</i:Interaction.Triggers>
|
|
<base:BaseView.Resources>
|
|
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
|
<ResourceDictionary x:Key="ResourceDictionary">
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="../../../Themes/Default.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</base:BaseView.Resources>
|
|
<!--<ContentControl x:Name="MenuRegion" MinHeight="50" Visibility="{Binding IsMenuIncluded, Converter={StaticResource BooleanToVisibilityConverter}}" >
|
|
<ContentControl.Template>
|
|
<ControlTemplate TargetType="ContentControl">
|
|
<Grid>
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</ContentControl.Template>
|
|
</ContentControl>-->
|
|
<StackPanel x:Name="MainShell" Orientation="Vertical" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
|
|
|
<ContentControl x:Name="NavigationRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.NavigationRegion}"
|
|
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MinHeight="500" MinWidth="150"
|
|
Visibility="{Binding IsNavigationIncluded, Converter={StaticResource BooleanToVisibilityConverter}}" >
|
|
<ContentControl.Template>
|
|
<ControlTemplate TargetType="ContentControl">
|
|
<Grid>
|
|
<Label>Let</Label>
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</ContentControl.Template>
|
|
</ContentControl>
|
|
|
|
<ContentControl x:Name="MainRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.MainRegion}"
|
|
VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
|
MinHeight="500" MinWidth="1000">
|
|
<ContentControl.Template>
|
|
<ControlTemplate TargetType="ContentControl">
|
|
<Grid>
|
|
<Label>Center</Label>
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</ContentControl.Template>
|
|
</ContentControl>
|
|
|
|
<ContentControl x:Name="VerticalTabRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.VerticalTabRegion}"
|
|
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MinHeight="250" MinWidth="250"
|
|
Visibility="{Binding IsNavigationIncluded, Converter={StaticResource BooleanToVisibilityConverter}}" >
|
|
<ContentControl.Template>
|
|
<ControlTemplate TargetType="ContentControl">
|
|
<Grid>
|
|
<Label>Right</Label>
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</ContentControl.Template>
|
|
</ContentControl>
|
|
</StackPanel>
|
|
|
|
<ContentControl x:Name="HorizontalTabRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.HorizontalTabRegion}"
|
|
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MinHeight="250" MinWidth="250"
|
|
Visibility="{Binding IsNavigationIncluded, Converter={StaticResource BooleanToVisibilityConverter}}" >
|
|
<ContentControl.Template>
|
|
<ControlTemplate TargetType="ContentControl">
|
|
<Grid>
|
|
<Label>Bottom</Label>
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</ContentControl.Template>
|
|
</ContentControl>
|
|
</StackPanel>
|
|
</base:BaseView>
|