Why is DialogHost.GetInstance private ? #3453
Closed
aohashi084
started this conversation in
General
Replies: 2 comments
-
This is something that could probably be made public. When it was added there was not a use-case for it being public and the implementation has changed a few times, so it was kept private to avoid any changed being a breaking change. But I think now, it would be fine to change it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. private static DialogHost FindDialogHost(string identifier)
{
var type = typeof(DialogHost);
var getInstance = type.GetMethod("GetInstance", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static);
return getInstance.Invoke(null, new object[] { identifier }) as DialogHost;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to change the CloseOnClickAway property depending on parameters.
Is there another way to implement this?
Beta Was this translation helpful? Give feedback.
All reactions