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"
|
Margin="0 10 0 0"
|
||||||
Foreground="{DynamicResource FontColor.Menu.Categories}" />
|
Foreground="{DynamicResource FontColor.Menu.Categories}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<local:HierarchicalSelectionControl x:Name="CategorySelectionControl"
|
<Border x:Name="CategoryValidationBorder"
|
||||||
Margin="0 5 0 0"
|
Margin="0 5 0 0"
|
||||||
SelectedItem="{Binding SelectedCategory, ElementName=CloseCaseDialogUc, Mode=TwoWay}"
|
Padding="1"
|
||||||
ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
BorderThickness="1"
|
||||||
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
CornerRadius="7.5"
|
||||||
SearchPlaceholderText="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Searchbar.Placeholder}"
|
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||||
DropDownOpened="DropDownOpened"
|
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}">
|
||||||
DropDownClosed="DropDownClosed"
|
<local:HierarchicalSelectionControl x:Name="CategorySelectionControl"
|
||||||
PreviewKeyDown="Combobox_PreviewKeyDown" />
|
SelectedItem="{Binding SelectedCategory, ElementName=CloseCaseDialogUc, Mode=TwoWay}"
|
||||||
<StackPanel>
|
ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||||
<TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.Template}"
|
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
||||||
FontWeight="Bold"
|
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"
|
Margin="0 10 0 0"
|
||||||
Foreground="{DynamicResource FontColor.Menu.Categories}" />
|
Foreground="{DynamicResource FontColor.Menu.Categories}" />
|
||||||
|
|
||||||
<ComboBox x:Name="QuickTicketSelection"
|
<Border x:Name="QuickTicketValidationBorder"
|
||||||
Margin="0 5 0 0"
|
Margin="0 5 0 0"
|
||||||
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
Padding="1"
|
||||||
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}"
|
BorderThickness="1"
|
||||||
SelectedIndex="0"
|
CornerRadius="7.5"
|
||||||
SelectionChanged="QuickTicketSelection_SelectionChanged"
|
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||||
PreviewKeyDown="Combobox_PreviewKeyDown"
|
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}">
|
||||||
DropDownOpened="DropDownOpened"
|
<ComboBox x:Name="QuickTicketSelection"
|
||||||
DropDownClosed="DropDownClosed">
|
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
|
||||||
</ComboBox>
|
BorderBrush="Transparent"
|
||||||
</StackPanel>
|
BorderThickness="0"
|
||||||
|
SelectedIndex="0"
|
||||||
|
SelectionChanged="QuickTicketSelection_SelectionChanged"
|
||||||
|
PreviewKeyDown="Combobox_PreviewKeyDown"
|
||||||
|
DropDownOpened="DropDownOpened"
|
||||||
|
DropDownClosed="DropDownClosed">
|
||||||
|
</ComboBox>
|
||||||
|
</Border>
|
||||||
|
</StackPanel>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock x:Name="SetOrUpdateComputerInTicketLabel"
|
<TextBlock x:Name="SetOrUpdateComputerInTicketLabel"
|
||||||
Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.SetAffectedAssetLabel}"
|
Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.SetAffectedAssetLabel}"
|
||||||
|
|||||||
@@ -431,8 +431,8 @@ namespace FasdDesktopUi.Basics.UserControls
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
this.Unloaded += CloseCaseDialogWithTicket_Unloaded;
|
this.Unloaded += CloseCaseDialogWithTicket_Unloaded;
|
||||||
this.Loaded += CloseCaseDialogWithTicket_Loaded;
|
this.Loaded += CloseCaseDialogWithTicket_Loaded;
|
||||||
defaultCategoryBorderBrush = CategorySelectionControl?.BorderBrush?.CloneCurrentValue();
|
defaultCategoryBorderBrush = CategoryValidationBorder?.BorderBrush?.CloneCurrentValue();
|
||||||
defaultQuickTicketBorderBrush = QuickTicketSelection?.BorderBrush?.CloneCurrentValue();
|
defaultQuickTicketBorderBrush = QuickTicketValidationBorder?.BorderBrush?.CloneCurrentValue();
|
||||||
if (validationErrorBrush is Freezable freezableBrush && freezableBrush.CanFreeze)
|
if (validationErrorBrush is Freezable freezableBrush && freezableBrush.CanFreeze)
|
||||||
freezableBrush.Freeze();
|
freezableBrush.Freeze();
|
||||||
|
|
||||||
@@ -2459,26 +2459,26 @@ namespace FasdDesktopUi.Basics.UserControls
|
|||||||
|
|
||||||
private void UpdateCategoryValidationVisualState(bool hasError)
|
private void UpdateCategoryValidationVisualState(bool hasError)
|
||||||
{
|
{
|
||||||
if (CategorySelectionControl == null)
|
if (CategoryValidationBorder == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (defaultCategoryBorderBrush == null)
|
if (defaultCategoryBorderBrush == null)
|
||||||
defaultCategoryBorderBrush = CategorySelectionControl.BorderBrush?.CloneCurrentValue();
|
defaultCategoryBorderBrush = CategoryValidationBorder.BorderBrush?.CloneCurrentValue();
|
||||||
|
|
||||||
CategorySelectionControl.BorderBrush = hasError
|
CategoryValidationBorder.BorderBrush = hasError
|
||||||
? validationErrorBrush
|
? validationErrorBrush
|
||||||
: defaultCategoryBorderBrush;
|
: defaultCategoryBorderBrush;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateQuickTicketValidationVisualState(bool hasError)
|
private void UpdateQuickTicketValidationVisualState(bool hasError)
|
||||||
{
|
{
|
||||||
if (QuickTicketSelection == null)
|
if (QuickTicketValidationBorder == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (defaultQuickTicketBorderBrush == null)
|
if (defaultQuickTicketBorderBrush == null)
|
||||||
defaultQuickTicketBorderBrush = QuickTicketSelection.BorderBrush?.CloneCurrentValue();
|
defaultQuickTicketBorderBrush = QuickTicketValidationBorder.BorderBrush?.CloneCurrentValue();
|
||||||
|
|
||||||
QuickTicketSelection.BorderBrush = hasError
|
QuickTicketValidationBorder.BorderBrush = hasError
|
||||||
? validationErrorBrush
|
? validationErrorBrush
|
||||||
: defaultQuickTicketBorderBrush;
|
: defaultQuickTicketBorderBrush;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user