Files
DP44/DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.GraphList/.svn/pristine/2e/2e7e2815aaf3c151653a24877102714f331adf36.svn-base
2026-04-17 14:55:32 -04:00

61 lines
3.7 KiB
Plaintext

<base:BaseView x:Class="DTS.Viewer.GraphList.ExportGraphMainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
xmlns:prism="http://prismlibrary.com/"
xmlns:classes="clr-namespace:DTS.Common.Classes;assembly=DTS.Common"
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
xmlns:graphList="clr-namespace:DTS.Viewer.GraphList">
<base:BaseView.Resources>
<converters:InverseBooleanToVisibilityConverter x:Key="InverseBooleanToVisibilityConverter" />
<converters:BooleanToOpacityConverter x:Key="BooleanToOpacityConverter" />
<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
<converters:ColorToSolidColorBrushConverter x:Key="ColorToSolidColorBrushConverter"/>
<converters:InverseBooleanConverter x:Key="InverseBooleanConverter" />
<HierarchicalDataTemplate ItemsSource="{Binding Path=Events}" x:Key="Templatekey">
<StackPanel Orientation="Horizontal" Background="Transparent" AutomationProperties.AutomationId="TestContentItems">
<CheckBox IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" Margin="1,1,3,1"
AutomationProperties.AutomationId="TestChanSelectionChkBx"/>
<TextBlock Text="{Binding Path=Name}" AutomationProperties.AutomationId="TestIDNameLbl" />
</StackPanel>
</HierarchicalDataTemplate>
<SolidColorBrush Color="LightBlue" x:Key="{x:Static SystemColors.HighlightBrushKey}"/>
<Style x:Key="TvItemStyle" TargetType="{x:Type TreeViewItem}">
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="IsSelected" Value="{Binding Path=IsSelected}"/>
<Setter Property="IsExpanded" Value="{Binding Path=IsExpanded}"/>
<Setter Property="KeyboardNavigation.AcceptsReturn" Value="True" />
<!--<Setter Property="graphList:VirtualToggleButton.IsVirtualToggleButton" Value="True" />
<Setter Property="graphList:VirtualToggleButton.IsLocked" Value="{Binding IsLocked}" />-->
<Setter Property="AutomationProperties.AutomationId" Value="TvTestItem" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Foreground" Value="{x:Static SystemColors.HighlightTextBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</base:BaseView.Resources>
<Grid x:Name="GraphMainRegion" IsEnabled="{Binding TestModified, Converter={StaticResource InverseBooleanConverter}}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ContentControl Grid.Row="0" Content="{Binding FilterView}" IsEnabled="{Binding IsFilterEnabled}"/>
<TreeView Grid.Row="2" x:Name="TvTestIdChannels" ItemsSource="{Binding FilteredTestIdsTree}"
ItemTemplate="{StaticResource Templatekey}"
ItemContainerStyle="{StaticResource TvItemStyle}"
HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Width="{Binding ElementName=GraphMainRegion, Path=Width}" />
</Grid>
</base:BaseView>