MAUI Community Toolkit - Popup behavioral issues

USLimey 0 Reputation points
2023-04-17T14:35:18.5333333+00:00

Hi there,

I have been developing an app that uses a custom POPUP (modal page) for data entry. I request data entry via a popup because I want to check that data is valid before updating the property.

Anyway, I have found that many of the things that work in a normal MAUI content page do not work properly in a Popup View.

The first thing I had problem was with the '<Entry keyboard = ' directive. In a normal page it will display the keyboard. In a Popup it will not display.

I then tried the keyboard extension - showKeyboardAsync - I invoked that when the entry got focus, and it failed to make the keyboard visible in the Popup window.

I think scripted a simple keyboard control to use in my Popup , which works well, but then found that the visual setters, which are applied as part of the app style sheet do not work as expected. Buttons are styled to shrink when pressed... On a normal page they restore to the Normal state some number of milliseconds after the press... On the Popup page they stay shrunk until the next button is pressed.

The bottom line is that I have found the modal functionality of the Popup to be somewhat buggy... IDK if I am missing a directive somewhere that would afford the desired functionality?

<VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
            <VisualState x:Name="Normal">
                <VisualState.Setters>
                    <Setter Property="Scale"
                            Value="1" />
                </VisualState.Setters>
            </VisualState>
            <VisualState x:Name="Pressed">
                <VisualState.Setters>
                    <Setter Property="Scale"
                            Value="0.9" />
                </VisualState.Setters>
            </VisualState>
        </VisualStateGroup>
    </VisualStateManager.VisualStateGroups 


.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,959 questions
{count} votes