VisualExtensions Class

Summary

Extension methods for IVisual.
Namespace
Avalonia
Base Types
  • object
graph BT Type-->Base0["object"] Type["VisualExtensions"] class Type type-node

Syntax

public static class VisualExtensions

Methods

Name Value Summary
PointToClient(IVisual, PixelPoint) Point
Converts a point from screen to client coordinates.
static
PointToScreen(IVisual, Point) PixelPoint
Converts a point from client to screen coordinates.
static
TransformToVisual(IVisual, IVisual) Matrix?
Returns a transform that transforms the visual's coordinates into the coordinates of the specified to.
static
TranslatePoint(IVisual, Point, IVisual) Point?
Translates a point relative to this visual to coordinates that are relative to the specified visual.
static