Ejemplo n.º 1
0
        private static object LoadXaml(string xaml)
        {
            var loader = new ExtendedXamlLoader(new List <Assembly> {
                typeof(Window).GetTypeInfo().Assembly
            });

            return(loader.Load(xaml));
        }
Ejemplo n.º 2
0
        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)));
        }