예제 #1
0
        /// <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);
            }
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        /// <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);
        }