New to Telerik UI for WPFStart a free 30-day trial

Represents a host control for windows in the Telerik framework.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public static class WindowHost

Inheritance: objectWindowHost

Fields

HitTestableProperty

DependencyProperty

Identifies the HitTestable attached property.

C#
public static readonly DependencyProperty HitTestableProperty

Methods

Retrieves the global mouse position based on the specified UI element and mouse event arguments.

C#
public static Point GetGlobalMousePosition(this UIElement target, MouseEventArgs e)
Parameters:targetUIElement

The UI element relative to which the mouse position is being calculated.

eMouseEventArgs

The mouse event arguments containing the current mouse position.

Returns:

Point

A Point representing the global position of the mouse in the application coordinate space.

Retrieves the hit testable element from the specified DependencyObject.

C#
public static bool GetHitTestable(DependencyObject element)
Parameters:elementDependencyObject

The DependencyObject to be tested for hit testing.

Returns:

bool

A hit testable element if found; otherwise, null.

Sets the hit testable state of the specified DependencyObject in the WindowHost.

C#
public static void SetHitTestable(DependencyObject element, bool hitTestVisible)
Parameters:elementDependencyObject

The DependencyObject that will be set as hit testable.

hitTestVisiblebool

A boolean value indicating whether the target should be hit testable.