VisualExtensions Class

Summary

Extension methods for IVisual.
Namespace
Avalonia
Base Types
  • object
graph TD Base0["object"]-->Type 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
TranslatePoint(IVisual, Point, IVisual) Point
Translates a point relative to this visual to coordinates that are relative to the specified visual. The visual and relativeTo should be descendants of the same root window
static