Hi guys,
I'm developing a control that has a lot of numeric and text "inputs" to update other controls.
I need to update just when the value changes "completely", because my other controls will call the service if the event of update be fired.
So, what I want is just fire the notify of value when user stops to click on the control.
I did something like this on RadSlider using IsDeferredDraggingEnabled='True'
Any thoughts to how implement this on RadNumericUpDown?
I'm developing a control that has a lot of numeric and text "inputs" to update other controls.
I need to update just when the value changes "completely", because my other controls will call the service if the event of update be fired.
So, what I want is just fire the notify of value when user stops to click on the control.
I did something like this on RadSlider using IsDeferredDraggingEnabled='True'
public
class
PWSlider : RadSlider
{
public
double
PWValue
{
get
{
return
(
double
)GetValue(PWValueProperty); }
set
{ SetValue(PWValueProperty, value); }
}
// Using a DependencyProperty as the backing store for PWValue. This enables animation, styling, binding, etc...
public
static
readonly
DependencyProperty PWValueProperty =
DependencyProperty.Register(
"PWValue"
,
typeof
(
double
),
typeof
(PWSlider),
new
PropertyMetadata(OnPWValuerPropertyChanged));
private
static
void
OnPWValuerPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
{
if
((o
as
PWSlider).Value != (
double
)e.NewValue)
(o
as
PWSlider).Value = (
double
)e.NewValue;
}
public
PWSlider()
{
this
.ValueChanged +=
new
RoutedPropertyChangedEventHandler<
double
>(PWSlider_ValueChanged);
}
void
PWSlider_ValueChanged(
object
sender, RoutedPropertyChangedEventArgs<
double
> e)
{
PWValue = e.NewValue;
}
}
Any thoughts to how implement this on RadNumericUpDown?