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

New Post: Create modal ChildWindow in Code and Display it

$
0
0
Is it possible to create a childWindow and display it in code?
My code is not throwing errors but I'm not seeing anything.
        var msg = new ChildWindow();

        msg.Caption = caption;
        msg.Background = Brushes.Black;
        msg.Foreground = Brushes.Yellow;
        msg.CaptionShadowBrush = Brushes.Black;
        msg.CaptionForeground = Brushes.Yellow;
        msg.WindowBackground = Brushes.Black;
        msg.WindowInactiveBackground = Brushes.Black;
        msg.IsModal = true;
        msg.Left = 175;
        msg.Top = 25;

        msg.Width = 200;
        msg.Height = 200;
        msg.WindowBorderThickness = new Thickness(0);
        msg.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>