private static object LoadXaml(string xaml) { var loader = new ExtendedXamlLoader(new List <Assembly> { typeof(Window).GetTypeInfo().Assembly }); return(loader.Load(xaml)); }
private static object LoadXaml(string file) { var assemblies = new List <Assembly> { Assembly.GetEntryAssembly(), typeof(OmniXaml.Tests.Model.Window).GetTypeInfo().Assembly }; var loader = new ExtendedXamlLoader(assemblies); return(loader.Load(File.ReadAllText(file))); }