60 lines
2.6 KiB
XML
60 lines
2.6 KiB
XML
<UserControl
|
|
x:Class="BeWo.View.Detail.AI.AiPromptbausteinSelectionView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:ai="clr-namespace:BeWo.ViewModel.View.AI"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:BeWo.View.Detail.AI"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="clr-namespace:BeWo.ViewModel"
|
|
d:DataContext="{d:DesignInstance Type=ai:AiPromptbausteinSelectionViewModel,
|
|
IsDesignTimeCreatable=True}"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="..\..\..\Styles\ModernOrangeBlack.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions />
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<TreeView
|
|
x:Name="treeView"
|
|
MinHeight="100"
|
|
Padding="3,20,3,3"
|
|
AllowDrop="True"
|
|
ContextMenuService.IsEnabled="{Binding IsChecked, ElementName=EditToggleButton}"
|
|
ItemContainerStyle="{DynamicResource igoal_treeitemstyle}"
|
|
ItemTemplate="{StaticResource ai_promptbaustein_treeitemtemplate}"
|
|
ItemsSource="{Binding ListVM.VMList, UpdateSourceTrigger=PropertyChanged}"
|
|
PreviewMouseDown="treeView_PreviewMouseDown"
|
|
SelectedItemChanged="treeView_SelectedItemChanged">
|
|
<TreeView.Resources>
|
|
<Style x:Key="igoal_treeitemstyle" TargetType="TreeViewItem">
|
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</TreeView.Resources>
|
|
</TreeView>
|
|
<Button
|
|
Grid.Row="1"
|
|
Command="{Binding SendCommand}"
|
|
Style="{StaticResource PrimaryButton}">
|
|
Absenden
|
|
</Button>
|
|
</Grid>
|
|
</UserControl>
|