Xceed.Wpf.Toolkit.BusyIndicator.ChangeVisualState C# (CSharp) Method

ChangeVisualState() protected method

Changes the control's visual state(s).
protected ChangeVisualState ( bool useTransitions ) : void
useTransitions bool True if state transitions should be used.
return void
    protected virtual void ChangeVisualState( bool useTransitions )
    {
      VisualStateManager.GoToState( this, IsBusy ? VisualStates.StateBusy : VisualStates.StateIdle, useTransitions );
      VisualStateManager.GoToState( this, IsContentVisible ? VisualStates.StateVisible : VisualStates.StateHidden, useTransitions );
    }