コード例 #1
0
        public override void Execute(object parameter)
        {
            JsonObject obj = this.Data.JsonObject;

            obj.TreatAsText();
            _tree.SelectItem(obj.ViewObject);
        }
コード例 #2
0
        public override async void Execute(object parameter)
        {
            JsonObject obj = this.Data.JsonObject;
            await obj.TreatAsJson();

            _tree.SelectItem(obj.ViewObject).IsExpanded = true;
            if (obj.AllChildren.Count <= 10)
            {
                _tree.ExpandSubtree(obj.ViewObject, int.MaxValue);
            }
        }