init
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<Popup x:Class="DTS.Common.Controls.LookupPopup"
|
||||
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"
|
||||
xmlns:local="clr-namespace:DTS.Common.Controls"
|
||||
xmlns:strings="clr-namespace:DTS.Common.Strings"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800"
|
||||
Opened="LookupPopup_OnOpenedClosed"
|
||||
Closed="LookupPopup_OnOpenedClosed"
|
||||
x:Name="lookupPopup">
|
||||
<Popup.Resources>
|
||||
<!--<local:BooleanOrMultiConverter x:Key="BooleanOrMultiConverter" />-->
|
||||
</Popup.Resources>
|
||||
<!--<Popup.Style>
|
||||
<Style TargetType="Popup">
|
||||
<Setter Property="IsOpen" Value="False"/>
|
||||
<Style.Triggers>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ShowChannelCodeLookupHelper}" Value="True" />
|
||||
<Condition Value="True">
|
||||
<Condition.Binding>
|
||||
<MultiBinding Converter="{StaticResource BooleanOrMultiConverter}">
|
||||
<Binding ElementName="MainEditBox" Path="IsKeyboardFocused" />
|
||||
<Binding ElementName="ISOPopup" Path="IsMouseOver" />
|
||||
<Binding ElementName="ISOPopup" Path="IsKeyboardFocusWithin" />
|
||||
<Binding ElementName="LookupPopup" Path="IsKeyboardFocusWithin"/>
|
||||
</MultiBinding>
|
||||
</Condition.Binding>
|
||||
</Condition>
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="IsOpen" Value="True" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Popup.Style>-->
|
||||
<Border Background="#FFEEEEEE" BorderBrush="#FF888888" BorderThickness="1" DataContext="{Binding ElementName=lookupPopup}">
|
||||
<StackPanel>
|
||||
<DataGrid x:Name="possibleChannels"
|
||||
ItemsSource="{Binding PossibleChannels}"
|
||||
VirtualizingPanel.IsVirtualizing="True" EnableRowVirtualization="True"
|
||||
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||
SelectionMode="Single"
|
||||
MouseDoubleClick="PossibleChannels_OnMouseDoubleClick"
|
||||
MaxHeight="350"
|
||||
AutomationProperties.AutomationId="CCB_LookupPopupPossibleChannelsDataGrid">
|
||||
<DataGrid.Style>
|
||||
<Style TargetType="{x:Type DataGrid}" BasedOn="{StaticResource {x:Type DataGrid}}">
|
||||
<Setter Property="Visibility" Value="Visible" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding PossibleChannels.Count}" Value="0">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</DataGrid.Style>
|
||||
</DataGrid>
|
||||
<TextBlock Text="{x:Static strings:Strings.NoChannelCodes}" Padding="5"
|
||||
AutomationProperties.AutomationId="CCB_LookupPopupNoChannelsLabel">
|
||||
<TextBlock.Style>
|
||||
<Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding PossibleChannels.Count}" Value="0">
|
||||
<Setter Property="Visibility" Value="Visible" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</TextBlock.Style>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Popup>
|
||||
Reference in New Issue
Block a user