示例#1
0
 /// <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();
     }
 }
示例#2
0
        /// <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;
        }