Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: how to add new layout document from code

$
0
0
Hi,

Can you give an x:Name to your LayoutDocumentPane in xaml and add LayoutDocument to it ?
 private void Button_Click_1( object sender, RoutedEventArgs e )
    {
      _layoutDocumentPane.Children.Add( new LayoutDocument() { Content = new TextBlock() { Text = "My Text"}, Title = "New Doc" } );
    }

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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