Files
DP44/DTS Viewer/DTS.Viewer/.svn/pristine/e6/e62e91089d031a647dcf9d389edc63ac41196444.svn-base

209 lines
15 KiB
Plaintext
Raw Normal View History

2026-04-17 14:55:32 -04:00
<base:BaseView x:Class="DTS.Viewer.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
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: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"
xmlns:dock="http://schemas.xceed.com/wpf/xaml/avalondock" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<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>-->
<StackPanel x:Name="MainShell" Orientation="Vertical" VerticalAlignment="Stretch" >
<dock:DockingManager VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BorderBrush="Black" BorderThickness="1" ShowSystemMenu="False">
<dock:DockingManager.Theme>
<dock:VS2010Theme/>
</dock:DockingManager.Theme>
<dock:DockingManager.Resources>
<Style TargetType="{x:Type dock:LayoutDocumentTabItem}">
<Setter Property="Width" Value="80" />
</Style>
<Style TargetType="{x:Type dock:LayoutAnchorableTabItem}">
<Setter Property="Width" Value="50" />
<Setter Property="VerticalAlignment" Value="Top"/>
</Style>
</dock:DockingManager.Resources>
<!--<dock:DockingManager.Theme>
<dock:AeroTheme/>
</dock:DockingManager.Theme>-->
<dock:DockingManager.DocumentHeaderTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding IconSource}" Margin="0,0,4,0"/>
<TextBlock Text="{Binding Title}" />
</StackPanel>
</DataTemplate>
</dock:DockingManager.DocumentHeaderTemplate>
<dock:LayoutRoot x:Name="_layoutRoot" >
<dock:LayoutPanel Orientation="Horizontal">
<!-- NavigationRegion -->
<dock:LayoutAnchorablePane DockWidth="250" >
<dock:LayoutAnchorable CanHide="False" CanClose="False" AutoHideWidth="250">
<ContentControl x:Name="NavigationRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.NavigationRegion}" MinWidth="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<Label>Let</Label>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
</dock:LayoutAnchorablePane>
<dock:LayoutPanel Orientation="Vertical" IsMaximized="True">
<dock:LayoutDocumentPaneGroup>
<dock:LayoutDocumentPane x:Name="ViewerPane" >
<dock:LayoutDocument ContentId="viewerEu" Title="EU " CanClose="False" >
<ContentControl x:Name="EuRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerEuRegion}" MinWidth="500" MinHeight="500" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<Label>EU</Label>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutDocument>
<dock:LayoutDocument ContentId="viewerMv" Title="mV " CanClose="False" >
<ContentControl x:Name="MvRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerMvRegion}" MinWidth="500" MinHeight="500" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<Label>mV</Label>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutDocument>
<dock:LayoutDocument ContentId="viewerEdc" Title="EDC " CanClose="False" >
<ContentControl x:Name="EdcRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerEdcRegion}" MinWidth="500" MinHeight="500" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<Label>EDC</Label>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutDocument>
</dock:LayoutDocumentPane>
</dock:LayoutDocumentPaneGroup >
<dock:LayoutAnchorablePaneGroup Orientation="Horizontal" DockHeight="270">
<dock:LayoutAnchorablePane >
<dock:LayoutAnchorable Title="Tests" CanHide="False" CanClose="False" AutoHideHeight="250">
<ContentControl x:Name="TestsRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerTestsRegion}" MinHeight="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
<dock:LayoutAnchorable Title="Graphs" CanHide="False" CanClose="False" AutoHideHeight="250">
<ContentControl x:Name="GraphsRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerGraphsRegion}" MinHeight="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
<dock:LayoutAnchorable Title="Legend" CanHide="False" CanClose="False" AutoHideHeight="250">
<ContentControl x:Name="LegendRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerLegendRegion}" MinHeight="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
</dock:LayoutAnchorablePane>
</dock:LayoutAnchorablePaneGroup>
</dock:LayoutPanel>
<dock:LayoutPanel Orientation="Vertical">
<dock:LayoutAnchorablePaneGroup >
<dock:LayoutAnchorablePane>
<dock:LayoutAnchorable Title="Diag" CanHide="False" CanClose="False" AutoHideWidth="250">
<ContentControl x:Name="DiagRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerDiagRegion}" MinWidth="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
<dock:LayoutAnchorable Title="Stats" CanHide="False" CanClose="False" AutoHideWidth="250">
<ContentControl x:Name="StatsRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerStatsRegion}" MinWidth="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
<dock:LayoutAnchorable Title="Cursor" CanHide="False" CanClose="False" AutoHideWidth="250">
<ContentControl x:Name="CursorRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerCursorRegion}" MinWidth="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
</dock:LayoutAnchorablePane>
</dock:LayoutAnchorablePaneGroup>
<dock:LayoutAnchorablePaneGroup >
<dock:LayoutAnchorablePane>
<dock:LayoutAnchorable Title="Properies" CanHide="False" CanClose="False" AutoHideWidth="250">
<ContentControl x:Name="PropertyRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.PropertyRegion}" MinWidth="250" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>
</dock:LayoutAnchorable>
</dock:LayoutAnchorablePane>
</dock:LayoutAnchorablePaneGroup>
</dock:LayoutPanel>
</dock:LayoutPanel>
</dock:LayoutRoot>
</dock:DockingManager>
</StackPanel>
</base:BaseView>