DynamicXaml.MarkupSystem.XamlWriter.StartRoot C# (CSharp) Method

StartRoot() private method

private StartRoot ( string name ) : void
name string
return void
        private void StartRoot(string name)
        {
            var parts = name.Split(':');
            if (parts.Length == 1)
                _writer.WriteStartElement(parts[0], "http://schemas.microsoft.com/winfx/2006/xaml/presentation");
            if (parts.Length == 2)
            {
                _writer.WriteStartElement(parts[0], parts[1], _references[parts[0]]);
                _writer.WriteAttributeString("xmlns", null, null, "http://schemas.microsoft.com/winfx/2006/xaml/presentation");
            }
            _isElementOpen.Push(true);
        }