ZoomContentControlSlider Class
Represents a Slider for use with the ZoomContentControl.
public class ZoomContentControlSlider : Slider
Constructors
ZoomContentControlSlider()
Initializes an instance of the class.
public ZoomContentControlSlider()
Properties
DefaultZoomLevel
The default zoom level.
MaxZoomLevel
A percentage value indicating the maximum zoom level of the content.
MinZoomLevel
A percentage value indicating the minimum zoom level of the content.
ZoomLevel
A percentage value indicating the current zoom level of the content.
ZoomLevelStops
The possible zoom level stops when zooming in or out incrementally.
public DoubleCollection? ZoomLevelStops { get; set; }
Property Value
- DoubleCollection:
The default value is
null, which indicates that ZoomStep should be used.
ZoomStep
The value used when incrementing and decrementing the zoom level.
Methods
OnDecreaseLarge()
Responds to the DecreaseLarge command.
protected override void OnDecreaseLarge()
OnDecreaseSmall()
Responds to a DecreaseSmall command.
protected override void OnDecreaseSmall()
OnIncreaseLarge()
Responds to an IncreaseLarge command.
protected override void OnIncreaseLarge()
OnIncreaseSmall()
Responds to an IncreaseSmall command.
protected override void OnIncreaseSmall()
OnValueChanged(double, double)
protected override void OnValueChanged(double oldValue, double newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | double | |
| newValue | double |
Fields
DefaultZoomLevelProperty
Defines the DefaultZoomLevel property.
public static readonly DependencyProperty DefaultZoomLevelProperty
MaxZoomLevelProperty
Defines the MaxZoomLevel property.
public static readonly DependencyProperty MaxZoomLevelProperty
MinZoomLevelProperty
Defines the MinZoomLevel property.
public static readonly DependencyProperty MinZoomLevelProperty
ZoomLevelProperty
Defines the ZoomLevel property.
public static readonly DependencyProperty ZoomLevelProperty
ZoomLevelStopsProperty
Defines the ZoomLevelStops property.
public static readonly DependencyProperty ZoomLevelStopsProperty
ZoomStepProperty
Defines the ZoomStep property.
public static readonly DependencyProperty ZoomStepProperty