/// <summary> /// Updates the items source. /// </summary> /// <param name="obj">The split list box.</param> /// <param name="args">Dependency Property Changed Event Args.</param> private static void ItemsSource_Changed(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SplitListBox splitListBox = obj as SplitListBox; if (splitListBox.ShowOtherItems) { splitListBox.ShowOtherItems = false; } else { SplitItemsControlHelper.UpdateItemsSource(splitListBox); } }
/// <summary> /// Updates the confirmed selected value. /// </summary> /// <param name="obj">The cascading list box.</param> /// <param name="args">Dependency Property Changed Args.</param> private static void ConfirmedSelectedItem_Changed(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SplitListBox splitListBox = obj as SplitListBox; splitListBox.UpdateSelectedValue(args.OldValue); }
/// <summary> /// Updates the items source. /// </summary> /// <param name="obj">The split list box.</param> /// <param name="args">Dependency Property Changed Event Args.</param> private static void OtherItemsSource_Changed(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SplitListBox splitListBox = obj as SplitListBox; SplitItemsControlHelper.UpdateItemsSource(splitListBox); }