ApplyCustomizations() 개인적인 메소드

private ApplyCustomizations ( XamlWriter xamlWriter ) : void
xamlWriter XamlWriter
리턴 void
예제 #1
0
파일: XamlWriter.cs 프로젝트: flq/XamlTags
        public XamlWriter(TextWriter output, XamlWriterSettings settings = null, bool closeOutputStream = true)
        {
            _writer = XmlWriter.Create(output,
                new XmlWriterSettings { CloseOutput = closeOutputStream, Indent = true, IndentChars = "  ", OmitXmlDeclaration = true });

            if (settings == null)
            {
                StartRoot("ContentControl");
                return;
            }

            settings.RegisterReferences(this);
            StartRoot(settings.RootElement ?? "ContentControl");
            _writer.WriteAttributeString("xmlns", "x", null, "http://schemas.microsoft.com/winfx/2006/xaml");
            WriteAllReferences();
            settings.ApplyCustomizations(this);
        }
예제 #2
0
        public XamlWriter(TextWriter output, XamlWriterSettings settings = null, bool closeOutputStream = true)
        {
            _writer = XmlWriter.Create(output,
                                       new XmlWriterSettings {
                CloseOutput = closeOutputStream, Indent = true, IndentChars = "  ", OmitXmlDeclaration = true
            });

            if (settings == null)
            {
                StartRoot("ContentControl");
                return;
            }

            settings.RegisterReferences(this);
            StartRoot(settings.RootElement ?? "ContentControl");
            _writer.WriteAttributeString("xmlns", "x", null, "http://schemas.microsoft.com/winfx/2006/xaml");
            WriteAllReferences();
            settings.ApplyCustomizations(this);
        }