An overlay canvas is a canvas for overlays which is on top of the DisplayCanvas in the visual tree. More...
Inherits Panel.
Public Member Functions | |
OverlayCanvas () | |
Creates the overlay canvas. | |
Static Public Attributes | |
static readonly DependencyProperty | ActualZoomFactorProperty |
Backing store for the ActualZoomFactor property. | |
static readonly DependencyProperty | ParentDisplayCanvasProperty |
Backing store for the readonly ParentDisplayCanvas property. | |
Protected Member Functions | |
override Size | MeasureOverride (Size availableSize) |
Measures all child elements with infinite space. More... | |
override Size | ArrangeOverride (Size finalSize) |
Arranges all child elements depending on their coordinates and unit. More... | |
Static Protected Attributes | |
static readonly DependencyPropertyKey | ActualZoomFactorKey |
The Key for readonly ActualZoomFactor property. | |
Properties | |
double | ActualZoomFactor [get] |
Gets the actual zoom factor of the display canvas this overlay is on. | |
DisplayCanvas | ParentDisplayCanvas [get] |
The DisplayCanvas this overlay is child of. More... | |
An overlay canvas is a canvas for overlays which is on top of the DisplayCanvas in the visual tree.
This canvas enables relative coordinates inside the full image extent and placing overlays in other overlays or non-overlay controls which have a DisplayCanvas
visual parent.
|
protected |
Arranges all child elements depending on their coordinates and unit.
finalSize | Size of the canvas. |
|
protected |
Measures all child elements with infinite space.
First layout pass.
availableSize | Ignored. |
|
get |
The DisplayCanvas this overlay is child of.
null
if no DisplayCanvas
parent is present.