Skip to content

Example of how to open a modal window passing parameters #915

Answered by Mithicor
edumorgan asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the ContentDialog Control. I am not sure how familiar you are with it, but here is an example of one that I use and how to call it. (Doesn't include setting up the IContentDialogService)

If you use a ViewModel, then you can pass data that way.

Add a Page to your project and change it to a ui:ContentDialog.
Use this as an example for your Page / ui:ContentDialog

<ui:ContentDialog x:Class="MyProject.Views.Dialogues.AddUserFlyout"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edumorgan
Comment options

Answer selected by edumorgan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants