Why my MAUI control isn't visible but still interractive

75 Views Asked by At

We are currently working on a MAUI project, versioned on git. I got View containing a picker, but in my case the picker isn't visible. I can click and interact with it, and the logic is still here. Furthermore, my colleagues have the right display (see below).

my colleagues' popup:

enter image description here

mine:

enter image description here enter image description here I haven't any more details to provide, because I don't even know were to find them. This thread seems to be a similar case. Maybe it could help.

I've already uninstalled and reinstall VS22, all nuggets, et delete and cloned the git repo.

1

There are 1 best solutions below

2
Cfun On BEST ANSWER

This is likely a bug from MAUI, as a workaround you can apply the below style in your "Platforms/Windows/App.xaml":

<maui:MauiWinUIApplication.Resources>
     <SolidColorBrush x:Key="ComboBoxForeground" Color="{StaticResource ComboBoxDropDownGlyphForeground}" />
     <Color x:Key="ComboBoxDropDownGlyphForeground">Black</Color>

     <Thickness x:Key="ComboBoxDropdownBorderThickness">5</Thickness>
     <SolidColorBrush x:Key="ComboBoxBorderBrush" Color="LightGray" />
     <SolidColorBrush x:Key="ComboBoxBorderBrushPointerOver" Color="{StaticResource ComboBoxDropDownGlyphForeground}" />

     <SolidColorBrush x:Key="ComboBoxForegroundPointerOver" Color="{StaticResource ComboBoxDropDownGlyphForeground}" />
    <SolidColorBrush x:Key="ComboBoxForegroundPressed" Color="{StaticResource ComboBoxDropDownGlyphForeground}" />

    <SolidColorBrush x:Key="ComboBoxDropDownBackground" Color="White" />
    <SolidColorBrush x:Key="ComboBoxItemForeground" Color="{StaticResource ComboBoxDropDownGlyphForeground}" />
    <SolidColorBrush x:Key="ComboBoxItemForegroundPointerOver" Color="Blue" />
</maui:MauiWinUIApplication.Resources>