In This Article

ZoomContentControlSlider Class

Represents a Slider for use with the ZoomContentControl.

public class ZoomContentControlSlider : Slider
Inheritance:
object Visual UIElement FrameworkElement Control RangeBase Slider object

Constructors

ZoomContentControlSlider()

Initializes an instance of the class.

public ZoomContentControlSlider()

Properties

DefaultZoomLevel

The default zoom level.

public double DefaultZoomLevel { get; set; }

Property Value

double:

The default value is 0.0.

MaxZoomLevel

A percentage value indicating the maximum zoom level of the content.

public double MaxZoomLevel { get; set; }

Property Value

double:

The default value is 0.0.

MinZoomLevel

A percentage value indicating the minimum zoom level of the content.

public double MinZoomLevel { get; set; }

Property Value

double:

The default value is 0.0.

ZoomLevel

A percentage value indicating the current zoom level of the content.

public double ZoomLevel { get; set; }

Property Value

double:

The default value is 0.0.

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.

public double ZoomStep { get; set; }

Property Value

double:

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)

Updates the current position of the Slider when the Value property changes.

protected override void OnValueChanged(double oldValue, double newValue)
Parameter Type Description
oldValue double

The old Value of the Slider.

newValue double

The new Value of the Slider.

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

Extension Methods