Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all 4964 articles
Browse latest View live

Updated Wiki: IntegerUpDown

$
0
0

IntegerUpDown

The IntegerUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<int> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

integerupdown.jpg

When using the IntegerUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual formatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
integerupdown_default.jpg
<xctk:IntegerUpDown Value="1564" />


Number:
integerupdown_number.jpg
<xctk:IntegerUpDown FormatString="N0" Value="1564" Increment="1" Maximum="200000"/>


Currency:
integerupdown_currency.jpg
<xctk:IntegerUpDown FormatString="C0" Value="1564" Increment="1" Maximum="5000" Minimum="50"/>



Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

integerupdown_watermark.jpg
<xctk:IntegerUpDown Watermark="Enter Integer" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: DecimalUpDown

$
0
0

DecimalUpDown

The DecimalUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<Decimal> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

decimalupdown.jpg

When using the DecimalUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual fromatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
decimalupdown_default.jpg
<xctk:DecimalUpDown Value="1564.6749586" />


Floating Point:
decimalupdown_float.jpg
<xctk:DecimalUpDown FormatString="F3" Value="1564.6749586" Increment=".001"  Maximum="200000.599" />


Currency:
decimalupdown_currency.jpg
<xctk:DecimalUpDown FormatString="C2" Value="1564.6749586" Increment=".5" Maximum="5000.50" Minimum="50.01" />


Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

decimalupdown_watermark.jpg
<xctk:DecimalUpDown Watermark="Enter Decimal" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: DoubleUpDown

$
0
0

DoubleUpDown

The DoubleUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<Double> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

decimalupdown.jpg

When using the DoubleUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual fromatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
decimalupdown_default.jpg
<xctk:DoubleUpDown Value="1564.6749586" />


Floating Point:
decimalupdown_float.jpg
<xctk:DoubleUpDown FormatString="F3" Value="1564.6749586" Increment=".001"  Maximum="200000.599" />


Currency:
decimalupdown_currency.jpg
<xctk:DoubleUpDown FormatString="C2" Value="1564.6749586" Increment=".5" Maximum="5000.50" Minimum="50.01" />


Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

doubleupdown_watermark.jpg
<xctk:DoubleUpDown Watermark="Enter Double" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: ByteUpDown

$
0
0

ByteUpDown

The ByteUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<byte> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the ByteUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual fromatted string representation of the value, you can use the Text property.
<xctk:ByteUpDown Value="156" />

Watermark

You can provide a Watermark to show text in place of a NULL Value.
<xctk:ByteUpDown Watermark="Enter Integer" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: LongUpDown

$
0
0

LongUpDown

The LongUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<long> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the LongUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual fromatted string representation of the value, you can use the Text property.

<xctk:LongUpDown Value="156" />

Watermark

You can provide a Watermark to show text in place of a NULL Value.

<xctk:LongUpDown Watermark="Enter value" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: ShortUpDown

$
0
0

ShortUpDown

The ShortUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<short> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the ShortUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual fromatted string representation of the value, you can use the Text property.
<xctk:ShortUpDown Value="156" />

Watermark

You can provide a Watermark to show text in place of a NULL Value.
<xctk:ShortUpDown Watermark="Enter value" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: SingleUpDown

$
0
0

SingleUpDown

The SingleUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<single> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the SingleUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual fromatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
<xctk:SingleUpDown Value="1564.674" />


Floating Point:
<xctk:SingleUpDown FormatString="F3" Value="1564.674" Increment=".001"  Maximum="200000.599" />


Currency:
<xctk:SingleUpDown FormatString="C2" Value="1564.674" Increment=".5" Maximum="5000.50" Minimum="50.01" />


Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

<xctk:SingleUpDown Watermark="Enter value" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: DecimalUpDown

$
0
0

DecimalUpDown

The DecimalUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<Decimal> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

decimalupdown.jpg

When using the DecimalUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual formatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
decimalupdown_default.jpg
<xctk:DecimalUpDown Value="1564.6749586" />


Floating Point:
decimalupdown_float.jpg
<xctk:DecimalUpDown FormatString="F3" Value="1564.6749586" Increment=".001"  Maximum="200000.599" />


Currency:
decimalupdown_currency.jpg
<xctk:DecimalUpDown FormatString="C2" Value="1564.6749586" Increment=".5" Maximum="5000.50" Minimum="50.01" />


Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

decimalupdown_watermark.jpg
<xctk:DecimalUpDown Watermark="Enter Decimal" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: DoubleUpDown

$
0
0

DoubleUpDown

The DoubleUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<Double> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

decimalupdown.jpg

When using the DoubleUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual formatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
decimalupdown_default.jpg
<xctk:DoubleUpDown Value="1564.6749586" />


Floating Point:
decimalupdown_float.jpg
<xctk:DoubleUpDown FormatString="F3" Value="1564.6749586" Increment=".001"  Maximum="200000.599" />


Currency:
decimalupdown_currency.jpg
<xctk:DoubleUpDown FormatString="C2" Value="1564.6749586" Increment=".5" Maximum="5000.50" Minimum="50.01" />


Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

doubleupdown_watermark.jpg
<xctk:DoubleUpDown Watermark="Enter Double" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: ByteUpDown

$
0
0

ByteUpDown

The ByteUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<byte> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the ByteUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual formatted string representation of the value, you can use the Text property.
<xctk:ByteUpDown Value="156" />

Watermark

You can provide a Watermark to show text in place of a NULL Value.
<xctk:ByteUpDown Watermark="Enter Integer" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: IntegerUpDown

$
0
0

IntegerUpDown

The IntegerUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<int> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

integerupdown.jpg

When using the IntegerUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual formatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
integerupdown_default.jpg
<xctk:IntegerUpDown Value="1564" />


Number:
integerupdown_number.jpg
<xctk:IntegerUpDown FormatString="N0" Value="1564" Increment="1" Maximum="200000"/>


Currency:
integerupdown_currency.jpg
<xctk:IntegerUpDown FormatString="C0" Value="1564" Increment="1" Maximum="5000" Minimum="50"/>



Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

integerupdown_watermark.jpg
<xctk:IntegerUpDown Watermark="Enter Integer" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: LongUpDown

$
0
0

LongUpDown

The LongUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<long> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the LongUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual formatted string representation of the value, you can use the Text property.

<xctk:LongUpDown Value="156" />

Watermark

You can provide a Watermark to show text in place of a NULL Value.

<xctk:LongUpDown Watermark="Enter value" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: ShortUpDown

$
0
0

ShortUpDown

The ShortUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<short> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the ShortUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual formatted string representation of the value, you can use the Text property.
<xctk:ShortUpDown Value="156" />

Watermark

You can provide a Watermark to show text in place of a NULL Value.
<xctk:ShortUpDown Watermark="Enter value" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

Updated Wiki: SingleUpDown

$
0
0

SingleUpDown

The SingleUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<single> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

When using the SingleUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. Use IsReadOnly to determine whether the control is read only. If you would like to get the actual fromatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
<xctk:SingleUpDown Value="1564.674" />


Floating Point:
<xctk:SingleUpDown FormatString="F3" Value="1564.674" Increment=".001"  Maximum="200000.599" />


Currency:
<xctk:SingleUpDown FormatString="C2" Value="1564.674" Increment=".5" Maximum="5000.50" Minimum="50.01" />


Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

<xctk:SingleUpDown Watermark="Enter value" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.

New Post: IntegerUpDown (v1.7) - IsEditable?

$
0
0
The task was not created on the Issue but internally.
It has now been fixed.

Commented Issue: ChildWindow center issue when content size is changed [19713]

$
0
0
I've faced a problem that the child window was not centered correctly if the content was changed.

Actually, it always remembers its previous position. Let's see below example.
1. Click "Small Dialog" button, it shows at the center of its parent
2. Click "Big Dialog" button, it shows at its previous position, although its content size has been changed.
3. Click "Big Dialog" button agaian, it shows at the center of its parent

Does any one know how to resolve this issue?

```
<Grid>
<StackPanel>
<Button Name="_smallDialogButton"
Content="Show Small Dialog"
Click="_smallDialogButton_OnClick"
Margin="10" />
<Button Name="_bigDialogButton"
Content="Show Big Dialog"
Click="_bigDialogButton_OnClick"
Margin="10" />
</StackPanel>
<toolkit:ChildWindow x:Name="_dialog" IsModal="True" WindowStartupLocation="Center" Content="{Binding}">
<toolkit:ChildWindow.Resources>
<DataTemplate DataType="{x:Type vm:SmallContent}">
<Grid Background="Red" Width="300" Height="300" />
</DataTemplate>
<DataTemplate DataType="{x:Type vm:BigContent}">
<Grid Background="Blue" Width="600" Height="600" />
</DataTemplate>
</toolkit:ChildWindow.Resources>
</toolkit:ChildWindow>
</Grid>
```

```
public partial class CustomDialogSample : UserControl
{
public CustomDialogSample()
{
InitializeComponent();
}

private void _smallDialogButton_OnClick(object sender, RoutedEventArgs e)
{
_dialog.DataContext = new SmallContent();
_dialog.WindowState = WindowState.Open;
}

private void _bigDialogButton_OnClick(object sender, RoutedEventArgs e)
{
_dialog.DataContext = new BigContent();
_dialog.WindowState = WindowState.Open;
}
}

public class SmallContent
{

}

public class BigContent
{

}
```
Comments: ** Comment from web user: yyytiger **

I was able to figure out the solution by calling UpdateLayout before showing the child window.


_dialog.DataContext = new BigContent();
_dialog.UpdateLayout();
_dialog.WindowState = WindowState.Open;

[TEXT](http://stackoverflow.com/questions/6029299/determining-size-of-a-control-before-rendering-process)

Commented Issue: ChildWindow center issue when content size is changed [19713]

$
0
0
I've faced a problem that the child window was not centered correctly if the content was changed.

Actually, it always remembers its previous position. Let's see below example.
1. Click "Small Dialog" button, it shows at the center of its parent
2. Click "Big Dialog" button, it shows at its previous position, although its content size has been changed.
3. Click "Big Dialog" button agaian, it shows at the center of its parent

Does any one know how to resolve this issue?

```
<Grid>
<StackPanel>
<Button Name="_smallDialogButton"
Content="Show Small Dialog"
Click="_smallDialogButton_OnClick"
Margin="10" />
<Button Name="_bigDialogButton"
Content="Show Big Dialog"
Click="_bigDialogButton_OnClick"
Margin="10" />
</StackPanel>
<toolkit:ChildWindow x:Name="_dialog" IsModal="True" WindowStartupLocation="Center" Content="{Binding}">
<toolkit:ChildWindow.Resources>
<DataTemplate DataType="{x:Type vm:SmallContent}">
<Grid Background="Red" Width="300" Height="300" />
</DataTemplate>
<DataTemplate DataType="{x:Type vm:BigContent}">
<Grid Background="Blue" Width="600" Height="600" />
</DataTemplate>
</toolkit:ChildWindow.Resources>
</toolkit:ChildWindow>
</Grid>
```

```
public partial class CustomDialogSample : UserControl
{
public CustomDialogSample()
{
InitializeComponent();
}

private void _smallDialogButton_OnClick(object sender, RoutedEventArgs e)
{
_dialog.DataContext = new SmallContent();
_dialog.WindowState = WindowState.Open;
}

private void _bigDialogButton_OnClick(object sender, RoutedEventArgs e)
{
_dialog.DataContext = new BigContent();
_dialog.WindowState = WindowState.Open;
}
}

public class SmallContent
{

}

public class BigContent
{

}
```
Comments: ** Comment from web user: yyytiger **

Here is the related post.

[Click here to view the post](http://stackoverflow.com/questions/6029299/determining-size-of-a-control-before-rendering-process)

New Post: Windows 8 Theme

$
0
0
"A Windows 8 Theme is now supported by all the controls in the toolkit"

How can we apply it?

New Comment on "PropertyGrid"

$
0
0
Is it possible to have do a "ShowAdvanced" flag on a per item basis? I can only see how to turn it on for all properties

Created Unassigned: AvalonDock invalid layout loading [19781]

$
0
0
Just converted my project from original avalondock 2 library to extended toolkits' one. Layout deserialization does not work anymore - it gives you blank area. XmlLayoutSerializer does not throw any exceptions, LayoutSerializationCallback is working as intended. Using xml file generated by extended toolkits' avalondock layout serializer gives same result (I guess they are identical, because original avalondock deserialized it quite well).
Made a small example of this issue. Just run the program - it will attempt to deserialize saved layout file, located in program folder (I've put it in bin/Debug). The layout was also saved in this example program.
Viewing all 4964 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>