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

            if (e.Property == ItemsSourceProperty)
            {
                tagTextBox.DisplayMemberPath = (string)e.NewValue;
            }
        }
示例#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;
            }
        }