コード例 #1
0
        //
        // Creates a managed dependency object from the xaml.
        //
        public override object CreateObjectFromString(string xaml, bool createNamescope)
        {
            XamlParser p = new XamlParser()
            {
                CreateNameScope = createNamescope,
                ResourceBase    = resourceBase,
            };

            return(p.ParseString(xaml));
        }
コード例 #2
0
        protected override void HydrateInternal(object value, string xaml, bool createNamescope, bool validateTemplates, bool import_default_xmlns)
        {
            XamlParser p = new XamlParser()
            {
                CreateNameScope   = createNamescope,
                ValidateTemplates = validateTemplates,
                HydrateObject     = value,
                ResourceBase      = resourceBase,
            };

            object v = p.ParseString(xaml);
        }