init
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
<base:BaseView x:Class="ISOSettings.ISOSettingsView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:strings="clr-namespace:ISOSettings.Resources"
|
||||
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
||||
xmlns:local="clr-namespace:ISOSettings"
|
||||
xmlns:system="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:enums="clr-namespace:DTS.Common.Enums;assembly=DTS.Common"
|
||||
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
|
||||
DataContext="{Binding Path=ISOData}">
|
||||
<base:BaseView.Resources>
|
||||
<ResourceDictionary>
|
||||
<converters:InverseEnumEnabledConverter x:Key="InverseEnumConverter" />
|
||||
<Style x:Key="TextStyle" TargetType="TextBlock" BasedOn="{StaticResource BasicTextStyle}">
|
||||
<Setter Property="Foreground" Value="Black"/>
|
||||
<Setter Property="FontSize" Value="12"/>
|
||||
<Setter Property="Margin" Value="5,0,10,0" />
|
||||
<Setter Property="Width" Value="170" />
|
||||
<Setter Property="HorizontalAlignment" Value="Right" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<Style x:Key="StackPanelHstyle" TargetType="StackPanel">
|
||||
<Setter Property="Orientation" Value="Horizontal" />
|
||||
<Setter Property="Margin" Value="0,0,0,5" />
|
||||
</Style>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</base:BaseView.Resources>
|
||||
|
||||
<StackPanel Orientation="Vertical" >
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}">
|
||||
<TextBlock Text="{strings:TranslateExtension ChannelNamesOnly}" Margin="5,10,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_ChannelNamesOnly" />
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.ChannelNamesOnly}" IsEnabled="{Binding Path=ISOData.ISOViewMode, Converter={StaticResource InverseEnumConverter}, ConverterParameter={x:Static enums:IsoViewMode.ChannelNameOnly}}" Margin="5,10,0,0" AutomationProperties.AutomationId="chk_ChannelNamesOnly" />
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}">
|
||||
<TextBlock Text="{strings:TranslateExtension ShowISOCodes}" Margin="5,10,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_ShowISOCodes"/>
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.ShowISOCodes}" IsEnabled="{Binding Path=ISOData.ISOViewMode, Converter={StaticResource InverseEnumConverter}, ConverterParameter={x:Static enums:IsoViewMode.ISOOnly}}" Margin="5,10,0,0" AutomationProperties.AutomationId="chk_ShowISOCodes"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}">
|
||||
<TextBlock Text="{strings:TranslateExtension ShowUserCodes}" Margin="5,0,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_ShowUserCodes"/>
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.ShowUserCodes}" IsEnabled="{Binding Path=ISOData.ISOViewMode, Converter={StaticResource InverseEnumConverter}, ConverterParameter={x:Static enums:IsoViewMode.UserCodeOnly}}" Margin="5,0,0,0" AutomationProperties.AutomationId="chk_ShowUserCodes"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}">
|
||||
<TextBlock Text="{strings:TranslateExtension ShowChannelCodeLookupHelper}" Margin="5,0,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_ShowChannelCodeLookupHelper"/>
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.ShowChannelCodeLookupHelper}" Margin="5,0,0,0" AutomationProperties.AutomationId="chk_ShowChannelCodeLookupHelper"
|
||||
IsEnabled="{Binding Path=ISOData.ISOViewMode, Converter={StaticResource InverseEnumConverter}, ConverterParameter={x:Static enums:IsoViewMode.ChannelNameOnly}}" />
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}" IsEnabled="{Binding Path=ISOData.ShowISOCodes}">
|
||||
<TextBlock Text="{strings:TranslateExtension ShowISOStringBuilder}" Margin="5,0,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_ShowISOStringBuilder"/>
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.ShowISOStringBuilder}" Margin="5,0,0,0" AutomationProperties.AutomationId="chk_ShowISOStringBuilder"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}" IsEnabled="{Binding Path=ISOData.ShowISOCodes}">
|
||||
<TextBlock Text="{strings:TranslateExtension RequireUniqueISOCodes}" Margin="5,0,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_RequireUniqueISOCodes"/>
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.UniqueISOCodesRequired}" Margin="5,0,0,0" AutomationProperties.AutomationId="chk_RequireUniqueISOCodes"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}" IsEnabled="{Binding Path=ISOData.ShowISOCodes}">
|
||||
<TextBlock Text="{strings:TranslateExtension UseISOCodeFilterMapping}" Margin="5,0,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_UseISOCodeFilterMapping"/>
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.UseISOCodeFilterMapping}" Margin="5,0,0,0" AutomationProperties.AutomationId="chk_UseISOCodeFilterMapping"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource StackPanelHstyle}" IsEnabled="{Binding Path=ISOData.ShowISOCodes}">
|
||||
<TextBlock Text="{strings:TranslateExtension ValidateTestObjectAndPositionFields}" Margin="5,0,0,0" Width="200" Style="{StaticResource TextStyle}" AutomationProperties.AutomationId="txt_ValidateTestObjectAndPosition" />
|
||||
<CheckBox IsChecked="{Binding Path=ISOData.ValidateTestObjectAndPosition}" Margin="5,0,0,0" AutomationProperties.AutomationId="chk_ValidateTestObjectAndPosition" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</base:BaseView>
|
||||
|
||||
Reference in New Issue
Block a user