47 lines
2.5 KiB
XML
47 lines
2.5 KiB
XML
<UserControl x:Class="AuroraUIComponent.UserControls.SequenceDrawer.UCSequenceDiagramControlList"
|
|
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:AuroraUIComponent.UserControls.SequenceDrawer"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
|
|
xmlns:aurora="clr-namespace:Aurora.View;assembly=Aurora"
|
|
d:DataContext="{d:DesignInstance Type=local:UCSequenceDiagramControlListViewModel}"
|
|
x:Name="uc"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<aurora:SharedResourceDictionary Source="pack://application:,,,/AuroraUIComponent;component/Style/Generic.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<aurora:BoolConverter x:Key="convVisibleCollapsed" FalseValue="Collapsed" TrueValue="Visible"/>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Border BorderBrush="Gray" BorderThickness="1">
|
|
<Grid Margin="10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ListBox Grid.Column="0" ItemsSource="{Binding ViewModels}" SelectedItem="{Binding SelectedVM}"
|
|
Margin="10 0 0 0" Visibility="{Binding DataContext.ShowList, ElementName=uc, Converter={StaticResource convVisibleCollapsed}}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border>
|
|
<TextBlock Text="{Binding SequenceName}" Padding="10"/>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel/>
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
</ListBox>
|
|
<local:UCSequenceDiagramControl Grid.Column="1" DataContext="{Binding SelectedVM}"/>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|