45 lines
2.9 KiB
Plaintext
45 lines
2.9 KiB
Plaintext
<base:BaseView x:Class="RealtimeModule.RealtimeChannelSelectView"
|
|
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:strings="clr-namespace:RealtimeModule"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="768" d:DesignWidth="1366">
|
|
<base:BaseView.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml"/>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Controls/combobox.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<Style TargetType="ListView">
|
|
<Setter Property="ItemContainerStyle" Value="{StaticResource TTS_ListViewItemStyle}"/>
|
|
</Style>
|
|
<Style TargetType="TextBox" BasedOn="{StaticResource TTS_TextBoxStyle}"/>
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TTS_TextBlockStyle}"/>
|
|
<Style TargetType="CheckBox" BasedOn="{StaticResource PageContentCheckBoxStyle}" />
|
|
<Style TargetType="ComboBox" BasedOn="{StaticResource TTS_ComboBoxStyle}"/>
|
|
<Style TargetType="Button" BasedOn="{StaticResource TTS_ButtonStyle}"/>
|
|
<Style TargetType="GridViewColumnHeader" BasedOn="{StaticResource Gray_GridViewColumnHeaderStyle}"/>
|
|
<converters:BooleanToVisibilityConverter x:Key="BoolToVisConverter" />
|
|
</ResourceDictionary>
|
|
</base:BaseView.Resources>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{strings:Translate AvailableChannels}" Margin="5" AutomationProperties.AutomationId="AvailableChannelsTextBox"/>
|
|
<ComboBox ItemsSource="{Binding RealtimeChannels}" MinWidth="300" SelectionChanged="ComboBox_SelectionChanged" IsTextSearchEnabled="False"
|
|
IsEditable="True" TextBoxBase.TextChanged="Search_TextChanged" AutomationProperties.AutomationId="RealtimeChannelsComboBox">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding Name}" Margin="0,0,10,0" />
|
|
<TextBlock Text="PASSED" Foreground="DarkGreen" Visibility="{Binding HasPassedLevelTrigger, Converter={StaticResource BoolToVisConverter}}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</base:BaseView>
|