Kategorie
This commit is contained in:
@@ -2393,12 +2393,11 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
|
||||
#region DropDown
|
||||
private static bool IsInsidePageable(FrameworkElement fe) => cUiElementHelper.GetFirstParentOfType<ComboBoxPageable>(fe) != null;
|
||||
private static bool IsHierarchicalControl(FrameworkElement fe) => fe is HierarchicalSelectionControl;
|
||||
|
||||
private void DropDownOpened(object sender, EventArgs e)
|
||||
{
|
||||
if (!(sender is FrameworkElement fe)) return;
|
||||
if (IsInsidePageable(fe) || IsHierarchicalControl(fe)) return; // Spezialfälle handeln Fokus selbst
|
||||
if (IsInsidePageable(fe)) return; // ComboBoxPageable fired itself
|
||||
|
||||
var parentBorder = cUiElementHelper.GetFirstParentOfType<Border>(fe);
|
||||
if (parentBorder != null)
|
||||
@@ -2408,7 +2407,7 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
private void DropDownClosed(object sender, EventArgs e)
|
||||
{
|
||||
if (!(sender is FrameworkElement fe)) return;
|
||||
if (IsInsidePageable(fe) || IsHierarchicalControl(fe)) return;
|
||||
if (IsInsidePageable(fe)) return;
|
||||
|
||||
var parentBorder = cUiElementHelper.GetFirstParentOfType<Border>(fe);
|
||||
if (parentBorder != null)
|
||||
|
||||
Reference in New Issue
Block a user