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
Hi,

Make sure you add the "msg" to the VisualTree.
For example, if your XAML looks like this :
<StackPanel x:Name="stack">
      <xctk:TimePicker Width="150"
                       Height="22" />
      <Button Content="TEST"
              Click="Button_Click_1" />
   </StackPanel>
Then, when creating the ChildWindow, add this :
stack.Children.Add( msg );

Viewing all articles
Browse latest Browse all 2157

Trending Articles



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