Folder ganze Row + Prompts auswählbar

This commit is contained in:
2026-03-23 11:23:02 +01:00
parent c6486e1255
commit 4b268e3e1a
2 changed files with 6 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
x:Key="ai_promptbaustein_folder_itemtemplate"
DataType="{x:Type vm:AiPromptbausteinFolderVM}"
ItemsSource="{Binding Path=SubFolders.VMList}">
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid Background="Transparent">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />

View File

@@ -65,6 +65,8 @@
MinHeight="100"
Padding="4,16,4,16"
AllowDrop="True"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
ContextMenuOpening="treeView_ContextMenuOpening"
ItemContainerStyle="{DynamicResource igoal_treeitemstyle}"
ItemTemplate="{StaticResource ai_promptbaustein_folder_itemtemplate}"
@@ -136,6 +138,8 @@
x:Name="listBoxEdit1"
Padding="4,16,4,16"
AllowDrop="False"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
ContextMenuOpening="ListBox_ContextMenuOpening"
ItemContainerStyle="{StaticResource PromptListBoxItem}"
ItemsSource="{Binding SelectedFolder.Prompts, UpdateSourceTrigger=PropertyChanged}"
@@ -192,8 +196,7 @@
<DataTemplate>
<Grid
Margin="0,3,0,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="Transparent"
PreviewMouseDown="Grid_PreviewMouseDown_1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />