示例#1
0
        private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ComboChecked source = d as ComboChecked;
            string       value  = (string)e.NewValue;

            if (string.IsNullOrWhiteSpace(value) == true)
            {
                source.Text = source.DefaultText;
            }
        }
示例#2
0
        private static void OnItemsSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ComboChecked source = d as ComboChecked;

            source.SetText();
        }