Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HorizontalOffset Attached Property

ToolTipService.HorizontalOffset Attached Property

Gets or sets the offset from the left of the area that is specified for the tooltip by the PlacementRectangle and PlacementTarget properties.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

See GetHorizontalOffset, SetHorizontalOffset
<object HorizontalOffset="double"/>
- or -
<object HorizontalOffset="qualifiedDouble"/>

XAML Values



A string representation of a Double value that is equal to or greater than 0.0 but that is smaller than Double.PositiveInfinity. This is interpreted as a device-independent unit (1/96th of an inch per unit) measurement. Strings do not have to explicitly include decimal points.


A Double value that is followed by one of these unit declaration strings: px, in, cm, pt.

px (default) is device-independent units (1/96th inch per unit)

in is inches; 1in==96px

cm is centimeters; 1cm==(96/2.54) px

pt is points; 1pt==(96/72) px

For information about how to get or set this property in code, see the GetHorizontalOffset and SetHorizontalOffset methods.

Property Value

Type: System.Double
A value that specifies a horizontal distance. The default value is zero (0).

Identifier field


Metadata properties set to true


The HorizontalOffset property and the VerticalOffset property values provide additional adjustment to the position of a tooltip that is defined by the PlacementTarget property and the PlacementRectangle property values.

HorizontalOffset behaves similarly to the Popup.HorizontalOffset property. For more information, see Popup Placement Behavior.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft