Пример #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 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);
        }