Beispiel #1
0
        private static void OnDisplayMemberPathChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TagTextBox tagTextBox = (TagTextBox)sender;

            if (e.Property == ItemsSourceProperty)
            {
                tagTextBox.DisplayMemberPath = (string)e.NewValue;
            }
        }
Beispiel #2
0
        private static void OnItemsSourceChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TagTextBox tagTextBox = (TagTextBox)sender;

            if (e.Property == ItemsSourceProperty)
            {
                tagTextBox.ItemsSource = (System.Collections.IEnumerable)e.NewValue;
            }
        }