I’m trying to position my tooltip so that it would be on the bottom and center of my target object. I can position it to be just on the bottom by ToolTipService.Postion="Bottom", but how to position it to be also on the center?
I’m trying to position my tooltip so that it would be on the bottom
Share
I agree, the options available for positioning a
ToolTipare a little limited. I think you’ll have to combinePlacement="Bottom"withHorizontalOffsetto get Bottom/Center positioning.To center the
ToolTiprelative to thePlacementTargetyou can use(PlacementTarget.ActualWidth / 2.0) - (ToolTip.ActualWidth / 2.0)Example
CenterToolTipConverter
If you need to center several
ToolTipsyou could use aStylelike