70 lines
2.7 KiB
XML
70 lines
2.7 KiB
XML
<UserControl
|
|
x:Class="Bitvault.Avalonia.ContainerView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:Bitvault"
|
|
x:DataType="vm:ContainerViewModel">
|
|
<Grid ColumnDefinitions="320,Auto,*" RowDefinitions="Auto,*">
|
|
<ContentControl
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Height="40"
|
|
Margin="4,4,0,0">
|
|
<Interaction.Behaviors>
|
|
<EventTriggerBehavior EventName="Loaded">
|
|
<NavigateAction Context="{Binding $self}" Route="ContainerHeader" />
|
|
</EventTriggerBehavior>
|
|
</Interaction.Behaviors>
|
|
</ContentControl>
|
|
<ListBox
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="2,-1,0,0"
|
|
ItemTemplate="{ReflectionBinding Template}"
|
|
ItemsSource="{Binding}"
|
|
SelectionMode="AlwaysSelected">
|
|
<ListBox.Styles>
|
|
<Style Selector="ListBoxItem">
|
|
<Setter Property="IsSelected" Value="{ReflectionBinding Selected}" />
|
|
</Style>
|
|
</ListBox.Styles>
|
|
</ListBox>
|
|
<GridSplitter
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
MinWidth="2"
|
|
MaxWidth="2"
|
|
Background="Transparent" />
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
|
BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}"
|
|
BorderThickness="1,1,0,0"
|
|
CornerRadius="8 0 0 0">
|
|
<Grid RowDefinitions="Auto, *">
|
|
<Border
|
|
Grid.Row="0"
|
|
Padding="4"
|
|
BorderBrush="{DynamicResource DividerStrokeColorDefaultBrush}"
|
|
BorderThickness="0,0,0,1">
|
|
<ContentControl x:Name="ContentHeader">
|
|
<Interaction.Behaviors>
|
|
<AttachedBehaviour>
|
|
<NavigateRegionAction Name="{Binding Named, StringFormat='{}{0}:ContentHeader'}" />
|
|
</AttachedBehaviour>
|
|
</Interaction.Behaviors>
|
|
</ContentControl>
|
|
</Border>
|
|
<ContentControl x:Name="Content" Grid.Row="1">
|
|
<Interaction.Behaviors>
|
|
<AttachedBehaviour>
|
|
<NavigateRegionAction Name="{Binding Named, StringFormat='{}{0}:Content'}" />
|
|
</AttachedBehaviour>
|
|
</Interaction.Behaviors>
|
|
</ContentControl>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|