VisualExtensions Class
Extension methods for Visual.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static class VisualExtensions
<ExtensionAttribute>
Public NotInheritable Class VisualExtensions
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type VisualExtensions = class end
| Inheritance | Object → VisualExtensions |
Methods
| PointToClient(Visual, PixelPoint) | Converts a point from screen to client coordinates. |
| PointToScreen(Visual, Point) | Converts a point from client to screen coordinates. |
| TransformToVisual(Visual, Visual) | Returns a transform that transforms the visual's coordinates into the coordinates of the specified to. |
| TranslatePoint(Visual, Point, Visual) | Translates a point relative to this visual to coordinates that are relative to the specified visual. |