internal void UpdateToolTipStyle() { Point relativeLocation = at.TranslatePoint(new Point(0, 0), this.AssociatedObject); if (relativeLocation.X < 0) { at.Placement = Dock.Right; apUserToolTip.Padding = new Thickness(0, 0, 10, 0); } else if (relativeLocation.X > 0) { at.Placement = Dock.Left; apUserToolTip.Padding = new Thickness(10, 0, 0, 0); } //if (relativeLocation.Y > 0) //{ // at.Placement = Dock.Top; // apUserToolTip.Padding = new Thickness(0, 10, 0, 0); //} //else if (relativeLocation.Y < 0) //{ // at.Placement = Dock.Bottom; // apUserToolTip.Padding = new Thickness(0, 0, 0, 10); //} }
public void UpdateToolTipStyle() { Point relativeLocation = at.TranslatePoint(new Point(0, 0), this); if (relativeLocation.X < 0) { at.Placement = Dock.Right; apErrorToolTip.Padding = new Thickness(0, 0, 10, 0); } else if (relativeLocation.X > 0) { at.Placement = Dock.Left; apErrorToolTip.Padding = new Thickness(10, 0, 0, 0); } }
public void UpdateToolTipStyle() { Point relativeLocation = at.TranslatePoint(new Point(0, 0), this.AssociatedObject); if (relativeLocation.Y > 0) { at.Placement = Dock.Top; apErrorToolTip.Padding = new Thickness(0, 10, 0, 0); } else if (relativeLocation.Y < 0) { at.Placement = Dock.Bottom; apErrorToolTip.Padding = new Thickness(0, 0, 0, 10); } }