141 lines
8.4 KiB
Plaintext
141 lines
8.4 KiB
Plaintext
|
|
<base:BaseView x:Class="DTS.Viewer.ExportMainViewGrid"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||
|
|
xmlns:prism="http://prismlibrary.com/"
|
||
|
|
xmlns:classes="clr-namespace:DTS.Common.Classes;assembly=DTS.Common"
|
||
|
|
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common"
|
||
|
|
xmlns:dialogs="clr-namespace:DTS.Common.Dialogs;assembly=DTS.Common"
|
||
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
||
|
|
xmlns:strings="clr-namespace:DTS.Viewer"
|
||
|
|
xmlns:interactionRequest="clr-namespace:DTS.Common.Interactivity;assembly=DTS.Common"
|
||
|
|
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>
|
||
|
|
|
||
|
|
<Grid x:Name="MainShell" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" UseLayoutRounding="True" SnapsToDevicePixels="True" >
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition x:Name="testsColumn" Width="310" />
|
||
|
|
<ColumnDefinition x:Name="separatorColumn" Width="5" />
|
||
|
|
<ColumnDefinition x:Name="graphsColumn" Width="*" />
|
||
|
|
<ColumnDefinition x:Name="optionsColumn" Width="310" />
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<!-- Nav-->
|
||
|
|
<Grid Grid.Column="0" Grid.Row="0" Visibility="Collapsed" >
|
||
|
|
<ContentControl x:Name="NavigationRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.NavigationRegion}"
|
||
|
|
VerticalAlignment="Stretch" HorizontalAlignment="Left" Visibility="Collapsed">
|
||
|
|
<ContentControl.Template >
|
||
|
|
<ControlTemplate TargetType="{x:Type ContentControl}">
|
||
|
|
<Grid>
|
||
|
|
<Label Content="Left"/>
|
||
|
|
<ContentPresenter Content="{TemplateBinding Content}" MinWidth="240" />
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</ContentControl.Template>
|
||
|
|
|
||
|
|
</ContentControl>
|
||
|
|
</Grid>
|
||
|
|
<!-- FB12164, a repurposed FB11709 -->
|
||
|
|
<ToggleButton Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Right" Panel.ZIndex="140" FontSize="8" AutomationProperties.AutomationId="btnCollapseNavPanel"
|
||
|
|
Height="15" Width="15" Background="{StaticResource Brush_ApplicationContentBackground}" Content="<<">
|
||
|
|
<ToggleButton.Triggers>
|
||
|
|
<EventTrigger RoutedEvent="ToggleButton.Unchecked">
|
||
|
|
<BeginStoryboard>
|
||
|
|
<Storyboard x:Name="ShowTabPanel">
|
||
|
|
<controls:GridLengthAnimation Storyboard.TargetName="testsColumn" Storyboard.TargetProperty="Width" From="15" Duration="0:0:0.1" FillBehavior="Stop" />
|
||
|
|
<DoubleAnimation Storyboard.TargetName="graphSelectionTabPane" Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:0.1" />
|
||
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Content">
|
||
|
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="<<" />
|
||
|
|
</ObjectAnimationUsingKeyFrames>
|
||
|
|
</Storyboard>
|
||
|
|
</BeginStoryboard>
|
||
|
|
</EventTrigger>
|
||
|
|
<EventTrigger RoutedEvent="ToggleButton.Checked">
|
||
|
|
<BeginStoryboard>
|
||
|
|
<Storyboard x:Name="HideTabPanel">
|
||
|
|
<controls:GridLengthAnimation Storyboard.TargetName="testsColumn" Storyboard.TargetProperty="Width" To="15" Duration="0:0:0.1" />
|
||
|
|
<DoubleAnimation Storyboard.TargetName="graphSelectionTabPane" Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:0.1" />
|
||
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Content">
|
||
|
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value=">>" />
|
||
|
|
</ObjectAnimationUsingKeyFrames>
|
||
|
|
</Storyboard>
|
||
|
|
</BeginStoryboard>
|
||
|
|
</EventTrigger>
|
||
|
|
</ToggleButton.Triggers>
|
||
|
|
</ToggleButton>
|
||
|
|
<TabControl x:Name="graphSelectionTabPane" Grid.Column="0" Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" AutomationProperties.AutomationId="GraphSelectionTabPane">
|
||
|
|
<TabItem x:Name="testsTab" Visibility ="Hidden" Header="{Binding Path=TitleTests}" AutomationProperties.AutomationId="TestsTab">
|
||
|
|
<ContentControl x:Name="TestsRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerTestsRegion}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||
|
|
<ContentControl.Template>
|
||
|
|
<ControlTemplate TargetType="{x:Type ContentControl}">
|
||
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||
|
|
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</ContentControl.Template>
|
||
|
|
</ContentControl>
|
||
|
|
</TabItem>
|
||
|
|
<TabItem x:Name="graphsTab" Header="{Binding Path=TitleGraphs}" AutomationProperties.AutomationId="GraphsTab">
|
||
|
|
<ContentControl x:Name="GraphListRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerGraphListRegion}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||
|
|
<ContentControl.Template>
|
||
|
|
<ControlTemplate TargetType="{x:Type ContentControl}">
|
||
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||
|
|
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</ContentControl.Template>
|
||
|
|
</ContentControl>
|
||
|
|
|
||
|
|
</TabItem>
|
||
|
|
<TabItem Header="Legend" Visibility="Collapsed" AutomationProperties.AutomationId="LegendTab">
|
||
|
|
<ContentControl x:Name="LegendRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerLegendRegion}"
|
||
|
|
Height="Auto" Width="Auto" VerticalAlignment="Top" HorizontalAlignment="Stretch">
|
||
|
|
<ContentControl.Template>
|
||
|
|
<ControlTemplate TargetType="{x:Type ContentControl}">
|
||
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</ContentControl.Template>
|
||
|
|
</ContentControl>
|
||
|
|
|
||
|
|
</TabItem>
|
||
|
|
</TabControl>
|
||
|
|
|
||
|
|
<GridSplitter Grid.Row="0" Grid.Column="1" VerticalAlignment="Stretch" Width="5" ResizeBehavior="PreviousAndNext" ResizeDirection="Columns"/>
|
||
|
|
<!-- Graph -->
|
||
|
|
<ContentControl Grid.Column="2" Grid.Row="0" x:Name="GraphRegion" prism:RegionManager.RegionName="{x:Static classes:RegionNames.ViewerGraphsRegion}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
|
||
|
|
<ContentControl.Template>
|
||
|
|
<ControlTemplate TargetType="{x:Type ContentControl}">
|
||
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</ContentControl.Template>
|
||
|
|
</ContentControl>
|
||
|
|
</Grid>
|
||
|
|
</base:BaseView>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|