From 1904b8e5094df985b617a6083fdca59c5d750d0c Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Mon, 9 Feb 2026 12:42:59 +0100 Subject: [PATCH] =?UTF-8?q?Komische=20Fehlermeldung=20beim=20Auswh=C3=A4hl?= =?UTF-8?q?en,=20sehr=20verstrickt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AI/AiPromptbausteinComplexTreeView.xaml | 254 +++--------------- .../AiPromptbausteinComplexTreeView.xaml.cs | 5 - BeWo/ViewModel/AiPromptbausteinFolderVM.cs | 3 + 3 files changed, 38 insertions(+), 224 deletions(-) diff --git a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml index 0aa0f80af..04c40e651 100644 --- a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml +++ b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml @@ -153,117 +153,10 @@ HorizontalAlignment="Stretch" Header="Prompts" Style="{StaticResource ObjectEditGroupBox}"> - + x:Name="favorite" + Command="{Binding ChangeFavoritenStatePromptCommand}" + Header="Kopieren"> @@ -320,9 +213,9 @@ VerticalAlignment="Stretch"> + Margin="0,3,0,0" + HorizontalAlignment="Stretch" + VerticalAlignment="Stretch"> @@ -333,125 +226,48 @@ VerticalAlignment="Stretch"> + Height="21" + Margin="0" + Padding="0" + VerticalAlignment="Center" + Background="Transparent" + BorderThickness="0" + Cursor="Arrow" + Focusable="False" + FontWeight="{Binding FontWeight, UpdateSourceTrigger=PropertyChanged}" + IsReadOnly="True" + Text="{Binding Path=Title, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" + ToolTipService.ShowDuration="100000"> - - (i) - + Grid.Column="1" + Margin="0" + Padding="0" + Visibility="{Binding IsInfoVisible, Converter={StaticResource BoolVisibilityConverter}}"> + + (i) + - - diff --git a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml.cs b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml.cs index 93bcaa27a..4dad5bd28 100644 --- a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml.cs +++ b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml.cs @@ -155,10 +155,5 @@ namespace BeWo.View.Detail.AI Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri)); e.Handled = true; } - - //private void Grid_PreviewMouseDown2(object sender, System.Windows.Input.MouseButtonEventArgs e) - //{ - // IsDragging = true; - //} } } diff --git a/BeWo/ViewModel/AiPromptbausteinFolderVM.cs b/BeWo/ViewModel/AiPromptbausteinFolderVM.cs index 978284c6e..8da936a92 100644 --- a/BeWo/ViewModel/AiPromptbausteinFolderVM.cs +++ b/BeWo/ViewModel/AiPromptbausteinFolderVM.cs @@ -99,6 +99,9 @@ namespace BeWo.ViewModel return; _SubPrompts.VMList.ListChanged += (s, e) => { + if (e.ListChangedType == System.ComponentModel.ListChangedType.ItemChanged) + return; + FirePropertyChanged(nameof(Displayname)); FirePropertyChanged(nameof(Prompts)); };