Esempio n. 1
0
        public void SetSelected()
        {
            if (this._wfslState != WFSLElementState.Selected)
            {
                SetHotspotStyle(Colors.Red, 0.5);
                HotspotLeft.Visibility = Visibility.Visible;
                HotspotTop.Visibility = Visibility.Visible;
                HotspotRight.Visibility = Visibility.Visible;
                HotspotBottom.Visibility = Visibility.Visible;

                this._wfslState = WFSLElementState.Selected;
            }
        }
Esempio n. 2
0
        public void SetFocus()
        {
            if (this._wfslState != WFSLElementState.Focus)
            {
                SetHotspotStyle(Color.FromArgb(0xff,0x4b,0x6a,0x9f), 1.0);
                HotspotLeft.Visibility = Visibility.Visible;
                HotspotTop.Visibility = Visibility.Visible;
                HotspotRight.Visibility = Visibility.Visible;
                HotspotBottom.Visibility = Visibility.Visible;

                this._wfslState = WFSLElementState.Focus;
            }
        }
Esempio n. 3
0
        public void SetUnFocus()
        {
            if (this._wfslState != WFSLElementState.UnFocus)
            {
                HotspotLeft.Visibility = Visibility.Collapsed;
                HotspotTop.Visibility = Visibility.Collapsed;
                HotspotRight.Visibility = Visibility.Collapsed;
                HotspotBottom.Visibility = Visibility.Collapsed;

                this._wfslState = WFSLElementState.UnFocus;
            }
        }
Esempio n. 4
0
        public void SetUnFocus()
        {
            if (this.WFSLState != WFSLElementState.UnFocus)
            {
                SetHotspotStyle(Colors.Blue, 0.8);
                ellipseBegin.Visibility = Visibility.Collapsed;
                rectangleCenter.Visibility = Visibility.Collapsed;
                ellipseEnd.Visibility = Visibility.Collapsed;

                this._wfslState = WFSLElementState.UnFocus;
            }
        }
Esempio n. 5
0
        public void SetSelected()
        {
            if (this.WFSLState != WFSLElementState.Selected)
            {
                SetHotspotStyle(Colors.Red, 1.0);
                ellipseBegin.Visibility = Visibility.Visible;
                rectangleCenter.Visibility = Visibility.Visible;
                ellipseEnd.Visibility = Visibility.Visible;

                this._wfslState = WFSLElementState.Selected;
            }
        }
Esempio n. 6
0
        public void SetFocus()
        {
            if (this.WFSLState != WFSLElementState.Focus)
            {
                SetHotspotStyle(Colors.Yellow, 1.0);
                ellipseBegin.Visibility = Visibility.Visible;
                rectangleCenter.Visibility = Visibility.Visible;
                ellipseEnd.Visibility = Visibility.Visible;
                //直线状态不显示中间点
                if (IsStraightLine() == true) rectangleCenter.Visibility = Visibility.Collapsed;

                this._wfslState = WFSLElementState.Focus;
            }
        }