ZoomPanControl
A custom class that provides zoom and pan features for any FrameworkElement.
public class ZoomPanControl : ContentControl
Inherits from / implements: ContentControl
Members at a glance
ZoomPanControl | Initializes a new instance of the ZoomPanControl class. |
AutomaticZoomOutKey | Gets or sets the Key that will be enable automatic zooming out, when the user hits that specific Key. By default this key is Escape key. |
IsAutomaticZoomingoutByKeypressEnabled | Gets or sets whether the user will be able to zoom out in full (if he is in zoomed in mode currently) by hitting a specified key (Escape key by default). |
IsPanningEnabled | Gets or sets as to whether the control should support pan as well as zoom or just zoom. |
ZoomInKeyboardKey | Gets or sets the Keyboard key to perform "Zoom In" function. |
ZoomMaximumDepth | Gets or sets the maximum zoom you would want the Zooming service to support. |
ZoomMinimumDepth | Gets or sets the minimum zoom you would want the Zooming service to support. |
ZoomOutKeyboardKey | Gets or sets the Keyboard key to perform "Zoom In" function. |
ZoomStep | Gets or sets the zoom factor for zooming the serviced target object - i.e. the Content. |
OnApplyTemplate | Called once the control template has been applied, which is where the named parts of the template first become reachable. |
AutomaticZoomOutKeyProperty | Identifies the AutomaticZoomOutKey dependency property. |
IsAutomaticZoomingoutByKeypressEnabledProperty | Identifies the IsAutomaticZoomingoutByKeypressEnabled dependency property. |
IsPanningEnabledProperty | Identifies the IsPanningEnabled dependency property. |
ZoomInKeyboardKeyProperty | Identifies the ZoomInKeyboardKey dependency property. |
ZoomMaximumDepthProperty | Identifies the ZoomMaximumDepth dependency property. |
ZoomMinimumDepthProperty | Identifies the ZoomMinimumDepth dependency property. |
ZoomOutKeyboardKeyProperty | Identifies the ZoomOutKeyboardKey dependency property. |
ZoomStepProperty | Identifies the ZoomStep dependency property. |
Constructors
ZoomPanControl
Initializes a new instance of the ZoomPanControl class.
Properties
AutomaticZoomOutKey
Gets or sets the Key that will be enable automatic zooming out, when the user hits that specific Key. By default this key is Escape key.
IsAutomaticZoomingoutByKeypressEnabled
Gets or sets whether the user will be able to zoom out in full (if he is in zoomed in mode currently) by hitting a specified key (Escape key by default).
IsPanningEnabled
Gets or sets as to whether the control should support pan as well as zoom or just zoom.
ZoomInKeyboardKey
Gets or sets the Keyboard key to perform "Zoom In" function.
Up (Arrow Up) key.ZoomMaximumDepth
Gets or sets the maximum zoom you would want the Zooming service to support.
ZoomMinimumDepth
Gets or sets the minimum zoom you would want the Zooming service to support.
ZoomOutKeyboardKey
Gets or sets the Keyboard key to perform "Zoom In" function.
Down (Arrow Down) key.ZoomStep
Gets or sets the zoom factor for zooming the serviced target object - i.e. the Content.
Methods
OnApplyTemplate
Called once the control template has been applied, which is where the named parts of the template first become reachable.
Fields
AutomaticZoomOutKeyProperty
Identifies the AutomaticZoomOutKey dependency property.
IsAutomaticZoomingoutByKeypressEnabledProperty
Identifies the IsAutomaticZoomingoutByKeypressEnabled dependency property.
IsPanningEnabledProperty
Identifies the IsPanningEnabled dependency property.
ZoomInKeyboardKeyProperty
Identifies the ZoomInKeyboardKey dependency property.
ZoomMaximumDepthProperty
Identifies the ZoomMaximumDepth dependency property.
ZoomMinimumDepthProperty
Identifies the ZoomMinimumDepth dependency property.
ZoomOutKeyboardKeyProperty
Identifies the ZoomOutKeyboardKey dependency property.
ZoomStepProperty
Identifies the ZoomStep dependency property.