/// <summary> /// Called before the PointerReleased event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerReleased(PointerRoutedEventArgs e) { base.OnPointerReleased(e); if (DataValidationListBox != null) { DataValidationListBox.PerformSelectionChanged(); } }
/// <summary> /// Creates a new instance of the <see cref="T:AutoFilterListBox" /> class. /// </summary> public DataValidationListBox() { base.DefaultStyleKey = typeof(DataValidationListBox); base.SelectedValuePath = "Value"; DataValidationListBox box = this; box.SelectionChanged += DataValidationListBox_SelectionChanged; }