Home

Load ResourceDictionary

Hi!

We started to use some UI in our LINQPad scripts, and this is amazing :D !

I was wondering if it's possible to load resource dictionaries for the current linqpad process or tab? As Application.Current is not available, for now I load the dictionary directly in the controls:

textbox.Resources.MergedDictionaries.Add(new ResourceDictionary { Source = new Uri("pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml", UriKind.Absolute), });

Thanks for your help.

Sign In or Register to comment.