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

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 4964

Trending Articles