Windows.UI.Xaml.Unhandled exception occurs when show the popup in ContentDialog #7476
Replies: 3 comments
-
It looks like you are setting IsOpen to true in the popup host's OnApplyTemplate method, which happens durring an arrange and measure pass. This isn't supported, you can either set the property to true in the xaml file or in the constructor, or wait for the loaded event to set the popup's isOpen property. |
Beta Was this translation helpful? Give feedback.
-
Hi @StephenLPeters , Thanks for the update. Sorry for the delay. I have attached the sample to this problem. If possible can please modify the sample or provide a code snippet related to the solution for solving the problem. Regards, |
Beta Was this translation helpful? Give feedback.
-
I think this would work:
|
Beta Was this translation helpful? Give feedback.
-
I have loaded the popup in ContentDialog and show the popup by clicking the button Unhandled exception.
Here the popup code snippet in ContentDialog
<ContentDialog
Replication procedure to reproduce the reported problem
Step 1: Run the Sample
Step 2: Click the Open ContentDialog button
Step 3: Click the Show Popup button
Observed Behavior:
Windows.UI.Xaml.Unhandled exception occurs when showing the popup in ContentDialog
Expected Behavior:
How to show the Popup properly without making an exception in UWP
I have attached the sample for your reference,
Sample Link: Sample.zip
Can anyone share the idea to resolve the reported problem?
Regrads,
Vijayarasan S
Beta Was this translation helpful? Give feedback.
All reactions