|
|||||||||||||||||||||
Application level resources & Windows Forms IntegrationWhen WPF is hosted in a Windows Forms application, you don't have a The answer is quite simple. Just manually create your own instance of an public Form1() { InitializeComponent(); // Create a WPF application var app = new System.Windows.Application(); // Load the ressources var resources = System.Windows.Application.LoadComponent( new Uri("Styles.xaml", UriKind.Relative)) as System.Windows.ResourceDictionary // Merge it on application level app.Resources.MergedDictionaries.Add(resources); }
Last modified: 2011-01-27 15:55:44
Copyright (c) by Christian Moser, 2011.
Comments on this articleShow all comments
|
|||||||||||||||||||||