added pflichtfelder, fix zum roten rand ausstehend
This commit is contained in:
BIN
2025-11-13 11_35_00-Clipboard.png
Normal file
BIN
2025-11-13 11_35_00-Clipboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -160,32 +160,47 @@
|
||||
Margin="0 10 0 0"
|
||||
Foreground="{DynamicResource FontColor.Menu.Categories}" />
|
||||
</StackPanel>
|
||||
<local:HierarchicalSelectionControl x:Name="CategorySelectionControl"
|
||||
Margin="0 5 0 0"
|
||||
SelectedItem="{Binding SelectedCategory, ElementName=CloseCaseDialogUc, Mode=TwoWay}"
|
||||
ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
||||
SearchPlaceholderText="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Searchbar.Placeholder}"
|
||||
DropDownOpened="DropDownOpened"
|
||||
DropDownClosed="DropDownClosed"
|
||||
PreviewKeyDown="Combobox_PreviewKeyDown" />
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.Template}"
|
||||
FontWeight="Bold"
|
||||
<Border x:Name="CategoryValidationBorder"
|
||||
Margin="0 5 0 0"
|
||||
Padding="1"
|
||||
BorderThickness="1"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}">
|
||||
<local:HierarchicalSelectionControl x:Name="CategorySelectionControl"
|
||||
SelectedItem="{Binding SelectedCategory, ElementName=CloseCaseDialogUc, Mode=TwoWay}"
|
||||
ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
||||
SearchPlaceholderText="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Searchbar.Placeholder}"
|
||||
DropDownOpened="DropDownOpened"
|
||||
DropDownClosed="DropDownClosed"
|
||||
PreviewKeyDown="Combobox_PreviewKeyDown" />
|
||||
</Border>
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.Template}"
|
||||
FontWeight="Bold"
|
||||
Margin="0 10 0 0"
|
||||
Foreground="{DynamicResource FontColor.Menu.Categories}" />
|
||||
|
||||
<ComboBox x:Name="QuickTicketSelection"
|
||||
Margin="0 5 0 0"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
||||
SelectedIndex="0"
|
||||
SelectionChanged="QuickTicketSelection_SelectionChanged"
|
||||
PreviewKeyDown="Combobox_PreviewKeyDown"
|
||||
DropDownOpened="DropDownOpened"
|
||||
DropDownClosed="DropDownClosed">
|
||||
</ComboBox>
|
||||
</StackPanel>
|
||||
<Border x:Name="QuickTicketValidationBorder"
|
||||
Margin="0 5 0 0"
|
||||
Padding="1"
|
||||
BorderThickness="1"
|
||||
CornerRadius="7.5"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}">
|
||||
<ComboBox x:Name="QuickTicketSelection"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="0"
|
||||
SelectedIndex="0"
|
||||
SelectionChanged="QuickTicketSelection_SelectionChanged"
|
||||
PreviewKeyDown="Combobox_PreviewKeyDown"
|
||||
DropDownOpened="DropDownOpened"
|
||||
DropDownClosed="DropDownClosed">
|
||||
</ComboBox>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock x:Name="SetOrUpdateComputerInTicketLabel"
|
||||
Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.SetAffectedAssetLabel}"
|
||||
|
||||
@@ -431,8 +431,8 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
InitializeComponent();
|
||||
this.Unloaded += CloseCaseDialogWithTicket_Unloaded;
|
||||
this.Loaded += CloseCaseDialogWithTicket_Loaded;
|
||||
defaultCategoryBorderBrush = CategorySelectionControl?.BorderBrush?.CloneCurrentValue();
|
||||
defaultQuickTicketBorderBrush = QuickTicketSelection?.BorderBrush?.CloneCurrentValue();
|
||||
defaultCategoryBorderBrush = CategoryValidationBorder?.BorderBrush?.CloneCurrentValue();
|
||||
defaultQuickTicketBorderBrush = QuickTicketValidationBorder?.BorderBrush?.CloneCurrentValue();
|
||||
if (validationErrorBrush is Freezable freezableBrush && freezableBrush.CanFreeze)
|
||||
freezableBrush.Freeze();
|
||||
|
||||
@@ -2459,26 +2459,26 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
|
||||
private void UpdateCategoryValidationVisualState(bool hasError)
|
||||
{
|
||||
if (CategorySelectionControl == null)
|
||||
if (CategoryValidationBorder == null)
|
||||
return;
|
||||
|
||||
if (defaultCategoryBorderBrush == null)
|
||||
defaultCategoryBorderBrush = CategorySelectionControl.BorderBrush?.CloneCurrentValue();
|
||||
defaultCategoryBorderBrush = CategoryValidationBorder.BorderBrush?.CloneCurrentValue();
|
||||
|
||||
CategorySelectionControl.BorderBrush = hasError
|
||||
CategoryValidationBorder.BorderBrush = hasError
|
||||
? validationErrorBrush
|
||||
: defaultCategoryBorderBrush;
|
||||
}
|
||||
|
||||
private void UpdateQuickTicketValidationVisualState(bool hasError)
|
||||
{
|
||||
if (QuickTicketSelection == null)
|
||||
if (QuickTicketValidationBorder == null)
|
||||
return;
|
||||
|
||||
if (defaultQuickTicketBorderBrush == null)
|
||||
defaultQuickTicketBorderBrush = QuickTicketSelection.BorderBrush?.CloneCurrentValue();
|
||||
defaultQuickTicketBorderBrush = QuickTicketValidationBorder.BorderBrush?.CloneCurrentValue();
|
||||
|
||||
QuickTicketSelection.BorderBrush = hasError
|
||||
QuickTicketValidationBorder.BorderBrush = hasError
|
||||
? validationErrorBrush
|
||||
: defaultQuickTicketBorderBrush;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user