diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index 34a5cc250..cf1c9e42d 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -106,6 +106,7 @@ + diff --git a/BeWo/BeWoApp.xaml b/BeWo/BeWoApp.xaml index 042c908b3..43aa8902a 100644 --- a/BeWo/BeWoApp.xaml +++ b/BeWo/BeWoApp.xaml @@ -86,6 +86,7 @@ + diff --git a/BeWo/Converter/StringEmptyBoolConverter.cs b/BeWo/Converter/StringEmptyBoolConverter.cs new file mode 100644 index 000000000..3bb495e3a --- /dev/null +++ b/BeWo/Converter/StringEmptyBoolConverter.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; + +namespace BeWo.Converter +{ + public class StringEmptyBoolConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + if (value is string stringi) + { + return !string.IsNullOrEmpty(stringi); + } + + return false; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml b/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml index d7d1203c9..df37ce2af 100644 --- a/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml +++ b/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml @@ -22,10 +22,10 @@