Skip to content

ComboBox Issues #18366

Answered by nasterhe
nasterhe asked this question in Q&A
Discussion options

You must be logged in to vote

Currently I'm doing it with the following code:

this.PointerPressed += OnPointerPressed;


private void On_PointerPressed(object? sender, PointerPressedEventArgs e)
{
    foreach (var item in this.GetVisualDescendants().OfType<ComboBox>())
{
    if (item.IsDropDownOpen)
    {
        item.IsDropDownOpen = false;
 
    }
}
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nasterhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant