ZoomContentControlSlider Class
Represents a Slider for use with the ZoomContentControl.
public class ZoomContentControlSlider : Slider
Constructors
ZoomContentControlSlider()
Initializes a new instance of the ZoomContentControlSlider class.
public ZoomContentControlSlider()
Properties
DefaultZoomLevel
Gets or sets the default zoom level. This is a dependency property.
public double DefaultZoomLevel { get; set; }
Property Value
- double:
The default zoom level. The default value is
0.0
.
MaxZoomLevel
Gets or sets a percentage value indicating the maximum zoom level of the content. This is a dependency property.
public double MaxZoomLevel { get; set; }
Property Value
- double:
A percentage value indicating the maximum zoom level of the content. The default value is
0.0
.
MinZoomLevel
Gets or sets a percentage value indicating the minimum zoom level of the content. This is a dependency property.
public double MinZoomLevel { get; set; }
Property Value
- double:
A percentage value indicating the minimum zoom level of the content. The default value is
0.0
.
ZoomLevel
Gets or sets a percentage value indicating the current zoom level of the content. This is a dependency property.
public double ZoomLevel { get; set; }
Property Value
- double:
A percentage value indicating the current zoom level of the content.. The default value is
0.0
.
ZoomLevelStops
Gets or sets the possible zoom level stops when zooming in or out incrementally. This is a dependency property.
public DoubleCollection ZoomLevelStops { get; set; }
Property Value
- DoubleCollection:
The possible zoom level stops when zooming in or out incrementally. The default value is
null
, which indicates that ZoomStep should be used.
ZoomStep
Gets or sets the value used when incrementing and decrementing the zoom level. This is a dependency property.
public double ZoomStep { get; set; }
Property Value
- double:
The value used when incrementing and decrementing the zoom level. The default value is
0.0
.
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
Identifies the DefaultZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty DefaultZoomLevelProperty
MaxZoomLevelProperty
Identifies the MaxZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty MaxZoomLevelProperty
MinZoomLevelProperty
Identifies the MinZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty MinZoomLevelProperty
ZoomLevelProperty
Identifies the ZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty ZoomLevelProperty
ZoomLevelStopsProperty
Identifies the ZoomLevelStops dependency property. This field is read-only.
public static readonly DependencyProperty ZoomLevelStopsProperty
ZoomStepProperty
Identifies the ZoomStep dependency property. This field is read-only.
public static readonly DependencyProperty ZoomStepProperty