Beispiel #1
0
        public void add_nested_element()
        {
            var writer = new XamlWriter(_sw);

            writer.RegisterReference("query", "abc");
            writer.StartElement("query:Viewer", w => w.AddAttribute("Value", "{Binding}"));
            writer.Dispose();
            GeneratedOutput.Should().Contain("  <query:Viewer");
        }