CVB.Net 14.0
OverlayCanvas Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ ArrangeOverride()

override Size ArrangeOverride ( Size  finalSize)
protected

Arranges all child elements depending on their coordinates and unit.

Parameters
finalSizeSize of the canvas.
Returns
Input size.

◆ MeasureOverride()

override Size MeasureOverride ( Size  availableSize)
protected

Measures all child elements with infinite space.

First layout pass.

Parameters
availableSizeIgnored.
Returns
Empty size.

Property Documentation

◆ ParentDisplayCanvas

DisplayCanvas ParentDisplayCanvas
get

The DisplayCanvas this overlay is child of.

null if no DisplayCanvas parent is present.