brianlagunas_cp
faa7825423
Major overhaul of NumericUpDown, DateTimeUpDown, and MaskedTextBox in order to support null values. Need extensive testing because I am sure I broke something.
15 years ago
brianlagunas_cp
70f5b84375
ButtonSpinner: Added AllowSpin and ShowButtonSpinner properties
UpDownBase: Added AllowSpin and ShowButtonSpinner properties
15 years ago
brianlagunas_cp
a030fcd934
initial checkin of new ColorCanvas control. This is an advanced color control that is not within a popup, but acts as a stand alone control that allows you to select colors by using a color canvas, or by setting RGB and Alpha values.
15 years ago
brianlagunas_cp
c028c06421
Moved UpDownBase into the primitives namespace.
15 years ago
brianlagunas_cp
37ca2046a3
Added ValueChanged event to DateTimeUpDown and NumericUpDown.
16 years ago
brianlagunas_cp
05b6f8024d
InputBase: Renamed DisplayText back to Text. made more sense and I didn't want to go change all the documentation to DisplayText :0P
16 years ago
brianlagunas_cp
403c43dc31
NumericUpDown: constrained the Value between the Min and Max values.
16 years ago
brianlagunas_cp
e04f959612
fixed some stuff I broke, and improved data type conversions
16 years ago
brianlagunas_cp
34e7fd56df
Made a lot of changes, and possible breaking changes:
1. added new MaskedTextBox control
2. no longer have UpDownBase<T>
3. NumericUpDown now has new base class. Hopefully I didn't break anything, but I know I did :0)
4. By default the NumericUpDown uses doubles. To use anything else such as decimals or int you must specify the ValueType accordingly.
<extToolkit:NumericUpDown Grid.Row="1" Value="{Binding Age}" Increment="1" Minimum="18" Maximum="65" ValueType="{x:Type sys:Int32}" />
16 years ago
brianlagunas_cp
532dab48f0
added new NumericUpDown control. It provides spin buttons to increment and decrement the value. You can also specifiy a format in which to show the value such as currency C2, or decimal up to three decimals F3. YOu can specify a Min and Max value as well as the increment values. You can also specify if the user can type in the textbox by setting IsEditable property. Support for up/down arrows and mouse wheel.
<toolkit:NumericUpDown Value="25" FormatString="C2" Increment=".5" Maximum="30" Minimum="20" />
16 years ago
brianlagunas_cp
308ad9dc85
initial checkin of new ButtonSpinner control. Allows you to add button spinners to any element and then respond to the Spin event to manipulate that element. To add use the following syntax
<toolkit:ButtonSpinner Spin="ButtonSpinner_Spin" >
<TextBox x:Name="_txtValue" />
</toolkit:ButtonSpinner>
private void ButtonSpinner_Spin(object sender, Microsoft.Windows.Controls.Primitives.SpinEventArgs e)
{
int value = String.IsNullOrEmpty(_txtValue.Text) ? 0 : Convert.ToInt32(_txtValue.Text);
if (e.Direction == Microsoft.Windows.Controls.Primitives.SpinDirection.Increase)
value++;
else
value--;
_txtValue.Text = value.ToString();
}
16 years ago