public void SetSelected() { if (this.wfState != WFElementState.Selected) { this.SetHotspotStyle(Colors.Red, 0.5); this.hotspotLeft.Visibility = this.hotspotRight.Visibility = Visibility.Visible; this.hotspotTop.Visibility = this.hotspotBottom.Visibility = Visibility.Visible; this.wfState = WFElementState.Selected; } }
public void SetFocus() { if (this.wfState != WFElementState.Focus) { this.SetHotspotStyle(Colors.Blue, 1.0); this.hotspotLeft.Visibility = this.hotspotRight.Visibility = Visibility.Visible; this.hotspotTop.Visibility = this.hotspotBottom.Visibility = Visibility.Visible; this.wfState = WFElementState.Focus; } }
public void SetUnFocus() { if (this.wfState != WFElementState.UnFocus) { this.hotspotLeft.Visibility = this.hotspotRight.Visibility = Visibility.Collapsed; this.hotspotTop.Visibility = this.hotspotBottom.Visibility = Visibility.Collapsed; this.wfState = WFElementState.UnFocus; } }
/// <summary> /// /// </summary> public void SetUnFocus() { if (this.WFState != WFElementState.UnFocus) { this.SetHotspotStyle(Colors.Red, 0.8); this.ellipseBegin.Visibility = Visibility.Collapsed; this.rectangleCenter.Visibility = Visibility.Collapsed; this.ellipseEnd.Visibility = Visibility.Collapsed; this.wfState = WFElementState.UnFocus; } }
/// <summary> /// /// </summary> public void SetSelected() { if (this.WFState != WFElementState.Selected) { this.SetHotspotStyle(Colors.Red, 1.0); this.ellipseBegin.Visibility = Visibility.Visible; this.rectangleCenter.Visibility = Visibility.Visible; this.ellipseEnd.Visibility = Visibility.Visible; this.wfState = WFElementState.Selected; } }
/// <summary> /// /// </summary> public void SetFocus() { if (this.WFState != WFElementState.Focus) { this.SetHotspotStyle(Colors.Yellow, 1.0); this.ellipseBegin.Visibility = Visibility.Visible; this.rectangleCenter.Visibility = Visibility.Visible; this.ellipseEnd.Visibility = Visibility.Visible; //直线状态不显示中间点。 if (this.IsStraightLine()) this.rectangleCenter.Visibility = Visibility.Collapsed; this.wfState = WFElementState.Focus; } }