ZoomPanel Methods |
The ZoomPanel type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CalculateVisibleArea |
Calculates the visible area that would be shown if ZoomPanel.Viewbox would be (0,0,1,1).
|
![]() | FitToHeight |
Sets the zoom and translation to show the whole height of the ZoomPanel's content.
|
![]() | FitToLimitsHeight |
Sets the zoom and translation to show the whole limits height of the ZoomPanel's content.
|
![]() | FitToLimitsWidth |
Sets the zoom and translation to show the whole limits width of the ZoomPanel's content (if ZoomPanel is Limited)
|
![]() | FitToWidth |
Sets the zoom and translation to show the whole width of the ZoomPanel's content.
|
![]() | GetCenterPosition |
Returns center positions as Point in the specified units (relative or absolute) and from the specified viewbox.
|
![]() | GetContentSize |
Gets the size of the ZoomPanel's content.
|
![]() | GetViewboxFromCenterAndZoomFactor |
Returns viewbox as Rect from the specified centerPosition, its units and zoomFactor.
|
![]() | GetZoomFactor |
Returns the zoom factor from the specified viewbox as Rect.
The method can be overridden to provide custom zoom factor calculations - for example exponential.
|
![]() | LineDown |
IScrollInfo.LineDown
|
![]() | LineLeft |
IScrollInfo.LineLeft
|
![]() | LineRight |
IScrollInfo.LineRight
|
![]() | LineUp |
IScrollInfo.LineUp
|
![]() | MakeVisible |
IScrollInfo.MakeVisible
|
![]() | MouseWheelDown |
IScrollInfo.MouseWheelDown
|
![]() | MouseWheelLeft |
IScrollInfo.MouseWheelLeft
|
![]() | MouseWheelRight |
IScrollInfo.MouseWheelRight
|
![]() | MouseWheelUp |
IScrollInfo.MouseWheelUp
|
![]() | OnApplyTemplate |
OnApplyTemplate
(Overrides FrameworkElementOnApplyTemplate.) |
![]() | PageDown |
IScrollInfo.PageDown
|
![]() | PageLeft |
IScrollInfo.PageLeft
|
![]() | PageRight |
IScrollInfo.PageRight
|
![]() | PageUp |
IScrollInfo.PageUp
|
![]() | Refresh |
Forces the ZoomPanel to immediately recalculate the visible area based on the current Viewbox settings.
|
![]() ![]() | RegisterCustomContentProvider |
Registers the ZoomPanel control to show custom content.
With custom content the ZoomPanel does not apply scale and translate transform to its content but instead calls the customContentProvider delegate that returns the custom content based on the current zoom parameters.
|
![]() | Reset |
Resets the zoom and translation to show the whole content of ZoomPanel (Viewbox="0 0 1 1"). The method also resets the RotationAngle to 0.
|
![]() | ResetNow |
Immediately resets the zoom and translation to show the whole content of ZoomPanel (Viewbox="0 0 1 1"). The method also resets the RotationAngle to 0.
|
![]() | ResetToLimits |
Resets the zoom and translation to show the content of ZoomPanel based on the ViewboxLimits. If Viewbox is not limited (IsViewboxLimited == false), the method is the same as Reset method. The method also resets the RotationAngle to 0.
|
![]() | ResetToLimitsNow |
Resets the zoom and translation to show the whole content of ZoomPanel. The method also resets the RotationAngle to 0.
|
![]() | SetHorizontalOffset |
IScrollInfo.SetHorizontalOffset
|
![]() | SetVerticalOffset |
IScrollInfo.SetVerticalOffset
|
![]() | SetViewbox |
Sets the viewbox relative to the ZoomPanel content.
|
![]() | SetViewboxNow |
Immediately sets the viewbox relative to the ZoomPanel content.
|
![]() | SetZoom(Double) |
Sets the zoom area to the currently set CenterPosition and the zoomFactor parameter. If IsAnimated property is true, the zoom area change is animated.
|
![]() | SetZoom(Point) |
Sets the zoom area to centerPosition parameter (in the current CenterPositionUnits) and the currently set ZoomFactor. If IsAnimated property is true, the zoom area change is animated.
|
![]() ![]() | SetZoom(Rect) |
Sets the zoom area to the new viewbox. If IsAnimated property is true, the zoom area change is animated.
|
![]() | SetZoom(Point, Double) |
Sets the zoom area to centerPosition parameter (in the current CenterPositionUnits) and the zoomFactor parameter. If IsAnimated property is true, the zoom area change is animated.
|
![]() | SetZoom(Rect, Double) |
Sets the zoom area to the new viewbox. If IsAnimated property is true, the zoom area change is animated.
|
![]() | SetZoom(Point, ZoomPanelCenterPositionUnitsType, Double) |
Sets the zoom area based on centerPosition, units and zoomFactor parameters. If IsAnimated property is true, the viewbox change is animated.
|
![]() | SetZoom(Point, ZoomPanelCenterPositionUnitsType, Double, Double) |
Sets the zoom area based on centerPosition, units and zoomFactor parameters. If IsAnimated property is true, the viewbox change is animated.
|
![]() | SetZoom(Point, ZoomPanelCenterPositionUnitsType, Double, Double, Boolean, Boolean) |
Sets the zoom from the centerPosition and zoomFactor.
|
![]() | SetZoomNow(Double) |
Sets the zoom area to the currently set CenterPosition and the zoomFactor parameter. The zoom area is changed immediately regardless of the IsAnimated property.
|
![]() | SetZoomNow(Point) |
Sets the zoom area to centerPosition parameter (in the current CenterPositionUnits) and the currently set ZoomFactor. The zoom area is changed immediately regardless of the IsAnimated property.
|
![]() ![]() | SetZoomNow(Rect) |
Sets the zoom area to the new viewbox. The zoom area is changed immediately regardless of the IsAnimated property.
|
![]() | SetZoomNow(Point, Double) |
Sets the zoom area to centerPosition parameter (in the current CenterPositionUnits) and the zoomFactor parameter. The zoom area is changed immediately regardless of the IsAnimated property.
|
![]() | SetZoomNow(Rect, Double) |
Sets the zoom area to the new viewbox. If IsAnimated property is true, the zoom area change is animated.
|
![]() | SetZoomNow(Point, ZoomPanelCenterPositionUnitsType, Double) |
Sets the zoom area based on centerPosition, units and zoomFactor parameters. The zoom area is changed immediately regardless of the IsAnimated property.
|
![]() | SetZoomNow(Point, ZoomPanelCenterPositionUnitsType, Double, Double) |
Sets the zoom area based on centerPosition, units and zoomFactor parameters. The zoom area is changed immediately regardless of the IsAnimated property.
|
![]() | Translate |
Translates the content by the dx and dy (in absolute units)
|
![]() | TranslateNow |
Translates the content by the dx and dy (in absolute units).
|
![]() | TranslateRelative |
Translates the content by the dx and dy (in relative units: 1 is the whole width/height of ZoomPanel)
|
![]() | TranslateToCenter |
Translates the content of ZoomPanel so that the mouseNewCenterPoint is shown in the center of ZoomPanel.
|
![]() | TranslateToCenterRelative |
Translates the content of ZoomPanel so that the mouseNewCenterPoint is shown in the center of ZoomPanel.
newRelativeCenterPoint is in relative coordinates - (0.5, 0.5) is the center of ZoomPanel
|
![]() | UnregisterCustomContentProvider |
Unregisters the ZoomPanel control from custom content provider - from now on the ZoomPanel will use ViewboxEx to apply scale and translate transforms to its content
|
![]() | ZoomAndTranslateToCenter |
Zooms and translates the content of ZoomPanel so that the mouseNewCenterPoint is shown in the center of ZoomPanel.
mouseNewCenterPoint is in absolute units.
|
![]() | ZoomAndTranslateToCenterRelative |
Zooms and translates the content of ZoomPanel so that the mouseNewCenterPoint is shown in the center of ZoomPanel.
newRelativeCenterPoint is in relative coordinates - (0.5, 0.5) is the center of ZoomPanel
|
![]() | ZoomAtMousePosition |
Zooms the content of ZoomPanel so that the mousePosition stays at the same location.
|
![]() | ZoomAtRelativeMousePosition |
Zooms the content of ZoomPanel so that the mousePosition stays at the same location.
relativeMousePosition is in relative coordinates - (0.5, 0.5) is the center of ZoomPanel.
|
![]() | ZoomForFactor |
Zooms the scene for the zoomFactor. For example zoom factor 2 means that the currently shown scene is scaled for factor 2 (for 100%).
|
![]() | ZoomForRectangle(Rect) |
Zooms and translates to show the content defined by newZoomRectangle (coordinates absolute units - from ZoomPanel's position and its ActualWidth and ActualHeight)
|
![]() | ZoomForRectangle(Point, Point) |
Zooms and translates to show the content defined by startPoint and endPoint (coordinates in absolute units - from ZoomPanel's position and its ActualWidth and ActualHeight)
|
![]() | ZoomForRectangleRelative |
Zooms and translates to show the content defined by newZoomRectangle (coordinates in relative units - 1,1 is right bottom corner or ZoomPanel)
|
![]() | ZoomToFactor |
Zooms the scene to the zoomFactor regardless of the current zoomFactor. For example zoomFactor 2 shows app. 50% of the content, 4 shows 25% of the content.
|