Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: ChildWindow as root element

$
0
0
This may be an old question, but if it helps anyone else you need to add the window to the UI tree before showing it.
Something like this:
            MyDialog dialog = new MyDialog();
            LayoutRoot.Children.Add(dialog);
            dialog.Closed += (s, ea) =>
                {
                    LayoutRoot.Children.Remove(dialog);
                };
            dialog.Show();

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>