brianlagunas_cp
|
ec9f9cc534
|
playing with theming
|
15 years ago |
brianlagunas_cp
|
03cc414929
|
More theming fun with the ButtonSpinner
|
15 years ago |
brianlagunas_cp
|
265b4c02aa
|
Starting to play around with theming. Starting with the ButtonSpinner.
|
15 years ago |
brianlagunas_cp
|
1f2c86021d
|
ButtonSpinner: removed fix in change set 78704 due to side affects.
|
15 years ago |
brianlagunas_cp
|
10439780dc
|
ButtonSpinner: changed foreground color of arrows when control is disabled
|
15 years ago |
brianlagunas_cp
|
01c639cccd
|
Fixed issue with numeric updown controls where clicking the button spinners would remove focus from the textbox.
|
15 years ago |
brianlagunas_cp
|
ae62284349
|
Changed ButtonChrome to contentcontrol and fixed various dropdown controls to visualize IsEnabled and IsChecked properly.
|
15 years ago |
brianlagunas_cp
|
70f5b84375
|
ButtonSpinner: Added AllowSpin and ShowButtonSpinner properties
UpDownBase: Added AllowSpin and ShowButtonSpinner properties
|
15 years ago |
brianlagunas_cp
|
7f5febee3f
|
ButtonSpinner: fixed minor tabbing issue that I introduced when I implemented the ButtonChrome
|
15 years ago |
brianlagunas_cp
|
d48a3d1211
|
Major overhaul of folder structure. Seperated Generic resource dictionary into smaller more managable resource dictionaries (one for each control). This will also help add support for theming. Hopefully I didn't break anything.
|
15 years ago |
brianlagunas_cp
|
3b0508eb3a
|
Spinner: fixed bug when exception occurred when the spinner button was clicked after typing a number above the maximum allowed.
|
15 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 |