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

New Post: Customise AvalonDock style

$
0
0
Hi,

In XAML, you can remove :
<xcad:DockingManager  DocumentPaneControlStyle="{StaticResource MyDocumentPaneControlStyle}">
and set it in code-behind :
using( System.IO.FileStream fs = new System.IO.FileStream( fileName, System.IO.FileMode.Open ) )
      {
        dic = (ResourceDictionary)System.Windows.Markup.XamlReader.Load( fs );
        Application.Current.Resources.MergedDictionaries.Add( dic );
        _dockingManager.DocumentPaneControlStyle = Application.Current.Resources[ "MyDocumentPaneControlStyle" ] as Style;
      }
This willcause a refresh of the DocumentPaneControlStyle.

Viewing all articles
Browse latest Browse all 2157

Trending Articles



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