Class ScreenUtils
Stores methods for work with monitor area.
Inheritance
System.Object
ScreenUtils
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class ScreenUtils : Object
Constructors
ScreenUtils()
Declaration
public ScreenUtils()
Methods
FixByScreenBounds(Rect)
Correct given rect.
Declaration
public static Rect FixByScreenBounds(Rect rectWindow)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rectWindow | Given System.Windows.Rect. |
Returns
Type | Description |
---|---|
System.Windows.Rect | Corrected System.Windows.Rect. |
GetElementFromPoint(ItemsControl, Point)
Gets element from point.
Declaration
public static FrameworkElement GetElementFromPoint(ItemsControl parentItemsControl, Point point)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.ItemsControl | parentItemsControl | Parent System.Windows.Controls.ItemsControl that contains a point |
System.Windows.Point | point | Given point. |
Returns
Type | Description |
---|---|
System.Windows.FrameworkElement | System.Windows.FrameworkElement from point. |