128 lines
4.9 KiB
XML
128 lines
4.9 KiB
XML
<view:BeWoView
|
|
x:Class="BeWo.View.Detail.AI.AiPromptbausteinPromptView2"
|
|
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"
|
|
x:Name="root"
|
|
Width="500"
|
|
Height="400"
|
|
Background="{StaticResource ObjectEditBackgroundBrush}"
|
|
Focusable="True">
|
|
<UserControl.InputBindings>
|
|
<KeyBinding Key="Esc" Command="ApplicationCommands.Close" />
|
|
</UserControl.InputBindings>
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="..\..\..\Styles\ModernOrangeBlack.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style BasedOn="{StaticResource PopupBlackLabel2}" TargetType="Label" />
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Grid 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"
|
|
Text="{Binding PromptVM.Title, UpdateSourceTrigger=PropertyChanged, ElementName=root}" />
|
|
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Content="Beschreibung" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
MaxHeight="100"
|
|
Margin="3,6,3,6"
|
|
MaxLength="1024"
|
|
Style="{StaticResource TextBoxNotice}"
|
|
Text="{Binding PromptVM.Description, UpdateSourceTrigger=PropertyChanged, ElementName=root}"
|
|
TextWrapping="Wrap" />
|
|
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Content="Prompt" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Style="{StaticResource TextBoxNoticeLarge}"
|
|
Text="{Binding PromptVM.Prompt, UpdateSourceTrigger=PropertyChanged, ElementName=root}"
|
|
TextWrapping="Wrap" />
|
|
|
|
<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 PromptVM.Creator, ElementName=root}" />
|
|
|
|
<!--<Label Grid.Row="4" Grid.Column="0">Öffentlich</Label>
|
|
<dxe:CheckEdit
|
|
Grid.Row="4"
|
|
Grid.Column="2"
|
|
Margin="3"
|
|
IsChecked="{Binding PromptVM.IsPublic, ElementName=root}"
|
|
IsEnabled="{Binding PromptVM.CanShareEdit, UpdateSourceTrigger=PropertyChanged, ElementName=root}" />-->
|
|
|
|
<Label Grid.Row="5" Grid.Column="0">Favorit</Label>
|
|
<dxe:CheckEdit
|
|
Grid.Row="5"
|
|
Grid.Column="2"
|
|
Margin="3,0,3,0"
|
|
IsChecked="{Binding PromptVM.IsFavorite, ElementName=root}"
|
|
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="Collapsed">
|
|
Abbrechen
|
|
</Button>
|
|
<Button
|
|
Width="100"
|
|
Command="{Binding SaveCommand, ElementName=root}"
|
|
Visibility="Visible">
|
|
Speichern
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</view:BeWoView>
|
|
|