Looking for a way to popup content similar to the ComboBox

Lloyd Sheen 1,331 Reputation points
2023-01-17T20:00:12.4133333+00:00

Want a layout control that I can "open" to show content. It should be able to be placed on the screen again similar to the combobox so that I can set the position (most likely under another control).

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

2 answers

Sort by: Most helpful
  1. Tasadduq Burney 8,456 Reputation points MVP
    2023-01-17T20:08:34.5733333+00:00

    You can create a Popup control in XAML and place it in your layout, and then set the content of the Popup using the Child property. You can also use the IsOpen property to open or close the Popup.

    <Popup x:Name="MyPopup" IsOpen="False" >
       <StackLayout>
         <Label Text="My Popup Content" />
       </StackLayout>
    </Popup>
    

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more