System.Windows.Controls.TextBox.ChangeVisualState C# (CSharp) Method

ChangeVisualState() private method

private ChangeVisualState ( ) : void
return void
		void ChangeVisualState ()
		{
			ChangeVisualState (true);
		}

Same methods

TextBox::ChangeVisualState ( bool useTransitions ) : void

Usage Example

Esempio n. 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);
            }
        }