62 lines
5.1 KiB
XML
62 lines
5.1 KiB
XML
<base:BaseView x:Class="DTS.Viewer.PSDReportResults.PSDReportResultsView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
mc:Ignorable="d"
|
|
xmlns:strings="clr-namespace:DTS.Viewer.PSDReportResults"
|
|
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
|
|
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common"
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common">
|
|
<base:BaseView.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<converters:IsGreaterThanConverter x:Key="IsGreaterThanConverter" />
|
|
</ResourceDictionary>
|
|
</base:BaseView.Resources>
|
|
<StackPanel>
|
|
<GroupBox Header="{strings:TranslateExtension ExportPSDHeader}" Margin="5,0,5,0" AutomationProperties.AutomationId="PSDExportGrpBx"
|
|
HorizontalAlignment="Stretch">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" IsEnabled="{Binding Results.Count, Converter={StaticResource IsGreaterThanConverter}, ConverterParameter=0}">
|
|
<Button Content="{strings:TranslateExtension ExportPSDtoPDF}" Margin="10" Padding="10, 5" Command="{Binding ExportToPDFCommand}" AutomationProperties.AutomationId="ExportToPDFBtn" />
|
|
<Button Content="{strings:TranslateExtension ExportPSDtoCSV}" Margin="10" Padding="10, 5" Command="{Binding ExportToCSVCommand}" AutomationProperties.AutomationId="ExportToCSVBtn" />
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="{strings:TranslateExtension PSDResultsHeader}" Margin="5,0,5,0" AutomationProperties.AutomationId="PSDResultsGrpBx"
|
|
HorizontalAlignment="Stretch">
|
|
<ListView Grid.Row="1" HorizontalAlignment="Stretch" ItemsSource="{Binding Results, UpdateSourceTrigger=PropertyChanged}" AutomationProperties.AutomationId="ResultsListView" SelectionMode="Single" GridViewColumnHeader.Click="GridViewColumnHeader_OnClick">
|
|
<ListView.View>
|
|
<controls:AutoSizedGridView AutomationProperties.AutomationId="GRMSResultsGridView">
|
|
<GridViewColumn AutomationProperties.AutomationId="ChannelName">
|
|
<controls:GridViewColumnHeaderSearchable Tag="ChannelName" HeaderTitle="{strings:TranslateExtension ChannelName}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
|
|
<GridViewColumn.CellTemplate>
|
|
<ItemContainerTemplate>
|
|
<TextBlock Text="{Binding ChannelName,FallbackValue='ChannelName'}" AutomationProperties.AutomationId="ChannelNameLbl"/>
|
|
</ItemContainerTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn AutomationProperties.AutomationId="SampleRate">
|
|
<controls:GridViewColumnHeaderSearchable Tag="SampleRate" HeaderTitle="{strings:TranslateExtension SampleRate}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
|
|
<GridViewColumn.CellTemplate>
|
|
<ItemContainerTemplate>
|
|
<TextBlock Text="{Binding SampleRate,FallbackValue='SampleRate',StringFormat='N0', TargetNullValue='---'}" AutomationProperties.AutomationId="SampleRateLbl" />
|
|
</ItemContainerTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn AutomationProperties.AutomationId="GRMS">
|
|
<controls:GridViewColumnHeaderSearchable Tag="GRMS" HeaderTitle="{strings:TranslateExtension GRMS}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
|
|
<GridViewColumn.CellTemplate>
|
|
<ItemContainerTemplate>
|
|
<TextBlock Text="{Binding GRMS,FallbackValue='GRMS'}" AutomationProperties.AutomationId="GRMSLbl" />
|
|
</ItemContainerTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</controls:AutoSizedGridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
</base:BaseView>
|