140 lines
5.4 KiB
XML
140 lines
5.4 KiB
XML
<view:BeWoView
|
|
x:Class="BeWo.View.Detail.AI.AiPromptbausteinPromptView"
|
|
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:view="clr-namespace:BeWo.View"
|
|
xmlns:viewmodel="clr-namespace:BeWo.ViewModel.View.Administration"
|
|
Width="auto"
|
|
Height="auto"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:AiPromptbausteinPromptViewModel}"
|
|
Background="{StaticResource ObjectEditBackgroundBrush}"
|
|
Focusable="True"
|
|
mc:Ignorable="d">
|
|
<view:BeWoView.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="..\..\..\Styles\ModernOrangeBlack.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style BasedOn="{StaticResource PopupBlackLabel2}" TargetType="Label" />
|
|
</ResourceDictionary>
|
|
</view:BeWoView.Resources>
|
|
<Grid
|
|
MaxWidth="700"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch">
|
|
<Grid Margin="8,4,8,4">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" MinWidth="80" />
|
|
<ColumnDefinition Width="0" />
|
|
<ColumnDefinition Width="3*" MinWidth="100" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<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 ViewModel.CanEdit}"
|
|
Text="{Binding ViewModel.Title, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Content="Beschreibung" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
MaxHeight="100"
|
|
Margin="3,6,3,6"
|
|
IsEnabled="{Binding ViewModel.CanEdit}"
|
|
MaxLength="1024"
|
|
Style="{StaticResource TextBoxNotice}"
|
|
Text="{Binding ViewModel.Description, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap" />
|
|
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Content="Prompt" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
IsEnabled="{Binding ViewModel.CanEdit}"
|
|
Style="{StaticResource TextBoxNoticeLarge}"
|
|
Text="{Binding ViewModel.Prompt, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
Visibility="{Binding ViewModel.IsPromptVisible, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
FontSize="10"
|
|
Foreground="DarkGray"
|
|
Visibility="{Binding ViewModel.IsPromptVisible, Converter={StaticResource BoolVisibilityConverter}, ConverterParameter=Reverse}">
|
|
nicht sichtbar
|
|
</Label>
|
|
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Content="Ersteller" />
|
|
<comboboxes:ComboBoxEmployeeSearch
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Margin="3,6,3,6"
|
|
IsEnabled="False"
|
|
SelectedCompactEmployeeDC="{Binding ViewModel.Creator}" />
|
|
|
|
<!--<Label Grid.Row="4" Grid.Column="0">Öffentlich</Label>
|
|
<dxe:CheckEdit
|
|
Grid.Row="4"
|
|
Grid.Column="2"
|
|
Margin="3"
|
|
IsChecked="{Binding ViewModel.IsPublic}"
|
|
IsEnabled="{Binding ViewModel.CanShareEdit, UpdateSourceTrigger=PropertyChanged}" />-->
|
|
|
|
<Label Grid.Row="5" Grid.Column="0">Favorit</Label>
|
|
<dxe:CheckEdit
|
|
Grid.Row="5"
|
|
Grid.Column="2"
|
|
Margin="3"
|
|
IsChecked="{Binding ViewModel.IsFavorite}"
|
|
IsEnabled="true" />
|
|
|
|
|
|
<StackPanel
|
|
Grid.Row="6"
|
|
Grid.ColumnSpan="3"
|
|
Margin="0,19,0,0"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Width="100"
|
|
Command="ApplicationCommands.Close"
|
|
Visibility="Visible">
|
|
Abbrechen
|
|
</Button>
|
|
<Button
|
|
Width="100"
|
|
Command="{Binding SaveCommand}"
|
|
Content="{Binding AcceptButtonText}"
|
|
Visibility="Visible" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</view:BeWoView>
|
|
|