UpDown Control Documentation

Screenshot
Usage

Properties

Header
Type: string. 
Description : Get or sets the header.
Default value : Name of control.

HeaderTemplate
Type: DataTemplate.
Description : Gets or sets the template used to display the control's header.
Default value : null.

ControlBackground
Type: Brush.
Description : Gets or sets the control background color.
Default value : Trasparent color.

ArrowColor
Type: Brush.
Description : Gets or sets the color arrows.
Default value : PhoneAccentColor resource.

ArrowDisabledColor
Type: Brush.
Description : Gets or sets the color disabled arrows.
Default value : PhoneDisabledColor resource.

ArrowDirection
Type: enum UpDownArrowTypes.
Description : Gets or sets the direction arrows.
Default value : LeftRight.

Enum UpDownArrowTypes:

  • LeftRight
  • UpDown
  • External

GapArrow
Type: int32.
Description : Gets or sets the distance between the arrows.
Default value : 30.

MinValue
Type: double.
Description : Gets or sets the minimum value of ranger.
Default value : 0.
Remarks: If MinValue greater than MaxValue, MinValue is assigned to MaxValue.

MaxValue
Type: double.
Description : Gets or sets the maximum value of ranger.
Default value : 0.
Remarks: If MaxValue less than MinValue, MaxValue is assigned to MinValue.

CurrentValue
Type: double.
Description : Gets or sets the value selected.
Default value : 0.
Remarks: If Value less than MinValue, Value is assigned to MinValue.If Value greater than MaxValue, Value is assigned to MaxValue.

SpeedHold
Type: int32.
Description : Gets or sets the speed change value when hold pressed action.
Default value : 250.
Remarks: seedHold must be between 100 and 500. Other value produce an exception ArgumentOutOfRangeException 

ExternalPathLeft
Type: string.
Description : Gets or sets the path geometric string for left/up action.
Default value : null.
Remarks: ArrowDirection must be set to External.

ExternalPathRight
Type: string.
Description : Gets or sets the path geometric string for right/Down action.
Default value : null.
Remarks:  ArrowDirection must be set to External.

IncrementHoldStart
Type: int32.
Description : Gets or sets the number of changes to switch for fast increment (Hold presed action).
Default value : 5.

IncrementHold
Type: double.
Description : Gets or sets the value to fast increment when hold pressed action.
Default value : 0.

Increment
Type: double.
Description : Gets or sets the value to increment when tap pressed action.
Default value : 0.

TextAfterValue
Type: string.
Description : Gets or sets the text after value.
Default value : null. 

LoopValues 
Type: bool.
Description : Gets or sets the loop value when increment over minimum or maximum value.
Default value : false. 

Events

UpDownValueChanged
Type : EventHandler<UpDownCustomValueChangedEvent>
Description: Trigger when value is changed.

UpDownCustomValueChangedEvent

OldValue
Type: double.
Description : Gets previous value.

NewValue
Type: double.
Description : Gets or set new value changed.

CustomValue
Type: string.
Description : Gets or set string value to show in control.
Default value : string of NewValue.

CustomText
Type: string.
Description : Gets or set text after value.
Default value : Last value of TextAfterValue. After set this property the dependency property TextAfterValueis changed.

Last edited Jun 27, 2012 at 2:22 AM by FCerqueira, version 8

Comments

No comments yet.