-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fully templated InPlace
ContentDialog
control throws exception on creation when defined inline in XAML
#4640
Comments
Thanks for the report. This is an android limitation with regards to multiple popups. Please see a workaround in #2533, I'll close this issue. |
Just noting that the workaround in #2533 does not resolve this issue. The sample has been updated to reflect this. |
fyi; I have a similar issue. The workaround in #2533 didn't make any difference for me either. |
Setting up the ContentDialog in code instead of XAML worked for me as a workaround. |
Agreed in code definition is a workaround but I really wanted to use the InPlace option which the documentation suggests is now available. The example has been extended to include both inplace and in code dialogs for Uno. |
If you still have the exception stack, can you add it to the issue? |
This is everything from the output window
|
The above was running version 3.5.1 |
A workaround for this issue is to define the ContentDialog in its own XAML file, and instanciate it from there. There's a "Uno Platform" ContentDialog template in Visual Studio (when the Uno Platform VSIX is installed). |
Exception from 4.6.19 [OpenGLRenderer] Davey! duration=9223241691997ms; Flags=0, FrameTimelineVsyncId=-1, IntendedVsync=130344856787825, Vsync=130344856809440, InputEventId=375673294, HandleInputStart=130344856889596, AnimationStart=130344856903607, PerformTraversalsStart=130344856908659, DrawStart=130344870601680, FrameDeadline=9223372036854775807, FrameInterval=130344856809440, FrameStartTime=16666666, SyncQueued=130344879321367, SyncStart=130344879507721, IssueDrawCommandsStart=130344880617305, SwapBuffers=130344889787669, FrameCompleted=9223372036854775807, DequeueBufferDuration=115572, QueueBufferDuration=3169843, GpuCompleted=9223372036854775807, SwapBuffersCompleted=130344895188346, DisplayPresentTime=0, [MIUIScout App] Enter APP_SCOUT_WARNING State |
InPlace
ContentDialog
control throws exception on creation when defined inline in XAML
Current behavior
On calling ShowAsync the following exception is raised
Java.Lang.IllegalStateException
Message=The specified child already has a parent. You must call removeView() on the child's parent first.
Expected behavior
The content dialog should be displayed
How to reproduce it (as minimally and precisely as possible)
Can be reproduced by running the sample located here:
https://github.com/BrianDT/UWPTemplatedContentDialogIssue.git
Workaround
A workaround for this issue is to define the ContentDialog in its own XAML file, and instanciate it from there. There's a "Uno Platform" ContentDialog template in Visual Studio (when the Uno Platform VSIX is installed).
Environment
Nuget Package:
Not sure
Nuget Package Version(s): 3.3.0
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: