public void ConvertToTags() { var col = new Collection <Instruction> { X.NamespacePrefixDeclaration(RootNs), X.StartObject <DummyClass>(), X.StartMember <DummyClass>(@class => @class.Child), X.StartObject <ChildClass>(), X.EndObject(), X.EndMember(), X.EndObject(), }; var result = NodeVisualizer.ToTags(col); }
public XamlToolsControl() { InitializeComponent(); VisualizeTagsCommand = new RelayCommand(Execute.Safely(_ => OpenTagVisualizer(NodeVisualizer.ToTags(ConvertToNodes(Xaml.ToStream()))))); VisualizeTreeCommand = new RelayCommand(Execute.Safely(_ => OpenTreeVisualizer(NodeVisualizer.ToTree(ConvertToNodes(Xaml.ToStream()))))); }