Slider ValueChanged Args can't be double?
Posted: 07 Dec 2018, 18:21
I want connect event when slider change value. I have this in C# generated by VisualStudio when I add event in WPF
I create C++ code
But in compile time it throw lot of errors, where is mentioned float. Then I decide change double in to float, and now it compile without error. Why is there used float instead double?
Code: Select all
private void ValueChanged_MSpeed(object sender, RoutedPropertyChangedEventArgs<double> e)
{
}Code: Select all
bool ConnectEvent(Noesis::BaseComponent* source, const char* event, const char* handler) override
{
// ...
NS_CONNECT_EVENT(Noesis::Slider, ValueChanged, ValueChanged_MSpeed);
return false;
}
void grid_UrhoControl::ValueChanged_MSpeed(Noesis::BaseComponent * object, const Noesis::RoutedPropertyChangedEventArgs<double>& args);