예제 #1
0
        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);
        }
예제 #2
0
        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())))));
        }