コード例 #1
0
        public override void OnApplyTemplate()
        {
            _treeview = (PromptTreeControl)GetTemplateChild("InnerTreeView");
            _treeview.SelectedValuePath    = "SelectedItem";
            _treeview.SelectedItemChanged += (s, e) =>
            {
                SetSelectedItemText();
                IsDropDownOpen = false;
            };

            SetSelectedItemText();

            base.OnApplyTemplate();
        }
コード例 #2
0
ファイル: ComboBoxTreeview.cs プロジェクト: e82eric/Prompts
        public override void OnApplyTemplate()
        {
            _treeview = (PromptTreeControl)GetTemplateChild("InnerTreeView");
            _treeview.SelectedValuePath = "SelectedItem";
            _treeview.SelectedItemChanged += (s, e) =>
                {
                    SetSelectedItemText();
                    IsDropDownOpen = false;
                };

            SetSelectedItemText();

            base.OnApplyTemplate();
        }