Click or drag to resize

ViewboxExViewbox Property

Gets or sets the box as Rect that determines which part of the the contents of a ViewboxEx is shown. Default value is "0 0 1 1" that shows the whole content.

Namespace:  Ab2d.Controls
Assembly:  Ab2d.Controls.ZoomPanel (in Ab2d.Controls.ZoomPanel.dll) Version: 5.2.6631.1040
Syntax
C#
public Rect Viewbox { get; set; }

Property Value

Type: Rect
Remarks

Examples:

The Viewbox value "0 0 1 1" means that the whole content of the ViewboxEx will be shown - same as WPF's Viewbox.

The value "0.5 0 0.5 1" means that only the right half of the content will be shown - x starting at 50%, y starting at 0%, width 50% and height 100%.

The value "0.5 0.5 0.5 0.5" means that only the lower right quarter of the content will be shown.

The value "-1 0 3 1" means that the ViewboxEx will show the area that is 3 times wider than its content - so the content will be shown in the middle of the ViewboxEx and there will be an empty area to the left and right of the content.

See Also