View Issue Details

IDProjectCategoryView StatusLast Update
0001656NoesisGUIC# SDKpublic2020-04-15 17:33
Reporterai_enabled Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
Product Version3.0.0 
Target Version3.0.0 
Summary0001656: Incorrect args for Slider.ValueChanged event
Description

Hi guys,

I've noticed that since 2.2.6 and some beta of 3.0.0 the OldValue and NewValue properties in RoutedPropertyChangedEventArgs<double> contains incorrect valuees.
For example, we have a slider responsible for the map. Here is what's game logging tells me when ValueChanged is changed:

Slider scale value changed: OldValue=0.007 -> NewValue=0.000
Actual slider Value is: 0.9877
Min value is: 0.913
Max value is: 1.000

I would expect that OldValue is around 0.98 and New value matching actual current Value property.

BTW, the slider is using values of type double.

Regards!

PlatformAny

Relationships

duplicate of 0001402 resolvedsfernandez RangeBase.ValueChanged new value broken 

Activities

ai_enabled

ai_enabled

2020-04-14 23:48

updater   ~0006205

Last edited: 2020-04-14 23:48

No rush with this issue as I can use the slider's Value property. But it's a really odd issue.

sfernandez

sfernandez

2020-04-15 13:14

manager   ~0006209

You should be able to fix it as we talked in issue 0001402 by changing Extend.GetNativePropertyType to return Float for double/decimal types.

ai_enabled

ai_enabled

2020-04-15 17:24

updater   ~0006212

Oh, right!
Sorry, my memory is overwhelmed :-)
Please close this ticket.

Issue History

Date Modified Username Field Change
2020-04-14 23:46 ai_enabled New Issue
2020-04-14 23:47 ai_enabled Description Updated
2020-04-14 23:48 ai_enabled Note Added: 0006205
2020-04-14 23:48 ai_enabled Note Edited: 0006205
2020-04-14 23:48 ai_enabled Note Edited: 0006205
2020-04-15 00:08 jsantos Target Version => 3.0.0
2020-04-15 00:08 jsantos Assigned To => sfernandez
2020-04-15 00:08 jsantos Status new => assigned
2020-04-15 13:12 sfernandez Relationship added duplicate of 0001402
2020-04-15 13:14 sfernandez Note Added: 0006209
2020-04-15 17:24 ai_enabled Note Added: 0006212
2020-04-15 17:33 sfernandez Status assigned => closed
2020-04-15 17:33 sfernandez Resolution open => duplicate