System.Windows.Controls.TextBox.ChangeVisualState C# (CSharp) Méthode

ChangeVisualState() private méthode

private ChangeVisualState ( ) : void
Résultat void
		void ChangeVisualState ()
		{
			ChangeVisualState (true);
		}

Same methods

TextBox::ChangeVisualState ( bool useTransitions ) : void

Usage Example

Exemple #1
0
        static void IsReadOnlyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            TextBox textbox = sender as TextBox;

            textbox.ChangeVisualState(false);

            if (textbox.AutomationPeer != null)
            {
                textbox.AutomationPeer.RaisePropertyChangedEvent(ValuePatternIdentifiers.IsReadOnlyProperty,
                                                                 args.OldValue,
                                                                 args.NewValue);
            }
        }