Exemplo n.º 1
0
        // Token: 0x06002268 RID: 8808 RVA: 0x000AAD94 File Offset: 0x000A8F94
        public static object LoadBaml(XamlReader xamlReader, bool skipJournaledProperties, object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
        {
            XamlObjectWriterSettings xamlObjectWriterSettings = XamlReader.CreateObjectWriterSettingsForBaml();

            xamlObjectWriterSettings.RootObjectInstance = rootObject;
            xamlObjectWriterSettings.AccessLevel        = accessLevel;
            object obj = WpfXamlLoader.Load(xamlReader, null, skipJournaledProperties, rootObject, xamlObjectWriterSettings, baseUri);

            WpfXamlLoader.EnsureXmlNamespaceMaps(obj, xamlReader.SchemaContext);
            return(obj);
        }
        public static object LoadBaml(System.Xaml.XamlReader xamlReader, bool skipJournaledProperties,
                                      Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
        {
            XamlObjectWriterSettings settings = XamlReader.CreateObjectWriterSettingsForBaml();

            settings.RootObjectInstance = rootObject;
            settings.AccessLevel        = accessLevel;
            object result = Load(xamlReader, null, skipJournaledProperties, rootObject, settings, baseUri);

            EnsureXmlNamespaceMaps(result, xamlReader.SchemaContext);
            return(result);
        }