Laden...

UWP ComboBox in Flyout schließt sich bei click sofort

Erstellt von ByteDevil vor 4 Jahren Letzter Beitrag vor 4 Jahren 854 Views
ByteDevil Themenstarter:in
132 Beiträge seit 2013
vor 4 Jahren
UWP ComboBox in Flyout schließt sich bei click sofort

Hallo,

ich habe eine UWP-Anwendung worin sich ein AppBarButton befindet, welcher ein Flyout öffnet. Darin befindet sich eine ComboBox. Klicke ich nun auf die ComboBox um ein anderes Item auszuwählen, schließt sich sofort sowohl die ComboBox, als auch das Flyout. Was mache ich falsch?

Dieses Minimalbeispiel reproduziert es:


    <Grid>
        <AppBarButton x:Name="mapSettingsButton" Icon="Map">
            <AppBarButton.Flyout>
                <Flyout Placement="Bottom">
                    <ComboBox Header="Farbstil" SelectedIndex="0">
                        <x:String>Dunkel</x:String>
                        <x:String>Hell</x:String>
                    </ComboBox>
                </Flyout>
            </AppBarButton.Flyout>
        </AppBarButton>
    </Grid>

ByteDevil Themenstarter:in
132 Beiträge seit 2013
vor 4 Jahren

Hat keiner eine Idee? 😦