unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.87k stars 716 forks source link

Fully templated dialog control displayed before ShowAsync is called when defined inline in XAML #4641

Closed BrianDT closed 1 year ago

BrianDT commented 3 years ago

Current behavior

The control is displayed in the location it is defined. When ShowAsync is called the content dialog is displayed in the wrong location.

Expected behavior

The control should not be displayed until ShowAsync is called.

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

Could probably be controlled with visibility, however this would not correct the positioning issue.

Environment

Nuget Package: Not sure

Nuget Package Version(s): 3.3.0

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

BrianDT commented 1 year ago

The 'control displayed before ShowAsync' part of this issue no longer occurs in 4.6.19 The display part has been separately raised in #10333 Please close

jeromelaban commented 1 year ago

Thanks!