94 lines
3.7 KiB
XML
94 lines
3.7 KiB
XML
<UserControl
|
|
x:Class="BeWo.View.Detail.AI.AiPromptbausteinFolderView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:comboboxes="clr-namespace:BeWo.View.Controls.ComboBoxes"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:viewmodel="clr-namespace:BeWo.ViewModel.View.Administration"
|
|
Width="auto"
|
|
Height="auto"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:AiPromptbausteinFolderViewModel}"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="..\..\..\Styles\ModernOrangeBlack.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Grid
|
|
MaxWidth="700"
|
|
Margin="2,0,2,10"
|
|
HorizontalAlignment="Stretch"
|
|
Background="#eeeeee">
|
|
<Grid Margin="8,4,8,4">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" MinWidth="80" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="3*" MinWidth="100" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Row="0" Grid.Column="0">Name</Label>
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
IsEnabled="{Binding IsEditingMode}"
|
|
Text="{Binding Node.Displayname, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Content="{Binding PromptLabelDescription}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
IsEnabled="{Binding IsEditingMode}"
|
|
MaxLength="1024"
|
|
Style="{StaticResource TextBoxNoticeLarge}"
|
|
Text="{Binding Node.Content, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Content="Ersteller:" />
|
|
<comboboxes:ComboBoxEmployeeSearch
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Margin="3"
|
|
IsEnabled="False"
|
|
SelectedCompactEmployeeDC="{Binding Node.Creator}" />
|
|
|
|
<Label Grid.Row="3" Grid.Column="0">Verborgen</Label>
|
|
<dxe:CheckEdit
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Margin="3"
|
|
IsChecked="{Binding Node.IsOnlyForCreator}"
|
|
IsEnabled="{Binding IsEditingMode, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Button
|
|
Grid.Row="6"
|
|
Grid.Column="2"
|
|
Width="100"
|
|
Margin="3,19,10,3"
|
|
HorizontalAlignment="Right"
|
|
Command="{Binding AddCommand}"
|
|
Visibility="{Binding IsAdd, Converter={StaticResource BoolVisibilityConverter}}">
|
|
Speichern
|
|
</Button>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|
|
|