ArcGISPortalViewer.Controls.TwoStateControl.ChangeVisualState C# (CSharp) Method

ChangeVisualState() private method

private ChangeVisualState ( bool useTransitions ) : void
useTransitions bool
return void
        private void ChangeVisualState(bool useTransitions)
        {
            if (IsSecondStateEnabled)
                GoToState(useTransitions, "Two");
            else
                GoToState(useTransitions, "One");
        }

Usage Example

Example #1
0
        private static void OnIsSecondStateEnabledPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TwoStateControl obj = (TwoStateControl)d;

            obj.ChangeVisualState(true);
        }