private void ChangeVisualState(bool useTransitions) { VisualStateManager.GoToState(this, IsEnabled ? NormalState : DisabledState, useTransitions); }