Example #1
0
        private void SelectionChanged(SelectionChangedType obj)
        {
            this.example = null;
            var attr = this.MenuTree.Selection.Select(i => i.Value).FilterCast <Type>().FirstOrDefault();

            if (attr != null)
            {
                this.example = AttributeExampleUtilities.GetExample(attr);
            }
        }
Example #2
0
        protected override OdinMenuTree BuildMenuTree()
        {
            OdinMenuTree tree = new OdinMenuTree();

            tree.Selection.SupportsMultiSelect  = false;
            tree.Selection.SelectionChanged    += this.SelectionChanged;
            tree.Config.DrawSearchToolbar       = true;
            tree.Config.DefaultMenuStyle.Height = 22;

            AttributeExampleUtilities.BuildMenuTree(tree);

            return(tree);
        }