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)); };