Example #1
0
 /// <summary>
 /// Called when combo box list selection changes.
 /// </summary>
 public void ComboBoxListSelectionChanged(ItemSelectionActionData actionData)
 {
     // close list and set selected item text
     ComboBoxButton.ToggleValue.Value = false;
     ComboBoxButton.Text.Value        = actionData.ItemView != null? actionData.ItemView.Text.Value : String.Empty;
     ComboBoxList.Deactivate();
 }
Example #2
0
        /// <summary>
        /// Called when a tab header gets selected.
        /// </summary>
        public void TabHeaderSelected(ItemSelectionActionData actionData)
        {
            var tabHeader = actionData.ItemView as TabHeader;

            SelectTab(tabHeader.ParentTab, true, false);

            Focus();
        }