I'm trying to create my own modal popup window in a windows store application. I am not using the current modal popup window listed below.
new MessageDialog("test").ShowAsync();
I need more ui elements like text box's and combo box's, not just buttons and text so I cannot use the simple modal solution provided above.
I have created my own "UserControl" and embedded it into a "Popup" element in xaml as provided below:
<Popup x:Name="SaveDialogPopup" IsOpen="True" Loaded="SaveDialogPopup_OnLoaded">
<controls:SaveDialogControl Width="{Binding ActualWidth, ElementName=Page}"/>
</Popup>
The solution provided above displays a popup how I want it. The popup is not modal so elements behind it can be selected and the background is not dimmed like the MessageDialog to show the user the popup is modal.
I have looked through the properties and methods of the MSDN popup documentation and cannot find any properties that allow my popup to be modal.
As a sub-optimal solution I could create a "Border" or "Grid" element in the background to dim the controls behind it and disable the controls behind it. I would like a built in solution or a more clean solution to do the same task.
Thank you for your time.