SuperMap.WindowsPhone.Core.FeatureElement.ChangeVisualState C# (CSharp) Method

ChangeVisualState() private method

private ChangeVisualState ( bool useTransitions ) : void
useTransitions bool
return void
        internal virtual void ChangeVisualState(bool useTransitions)
        {
            if (this.isMouseOver)
            {
                if (!this.GoToState(useTransitions, "MouseOver"))
                {
                    this.GoToState(useTransitions, "Normal");
                }
            }
            else
            {
                this.GoToState(useTransitions, "Normal");
            }
            if (this.Selected)
            {
                if (!this.GoToState(useTransitions, "Selected"))
                {
                    this.GoToState(useTransitions, "Unselected");
                }
            }
            else
            {
                this.GoToState(useTransitions, "Unselected");
            }
        }