ValueChanged not triggering Caliburn attached message

I cannot seem to properly attach a caliburn micro event message to the ValueChanged event. It works for ValueChanging.


This does not trigger the AbilityChanged fiction on my DataContext.

<sf:UpDown Grid.Row="1" Grid.Column="1" NumberDecimalDigits="0" TextAlignment="Center" Margin="10,0,10,0" Value="{Binding Character.Strength.BaseValue}" Step="1" MinValue="{Binding Character.Class.StrengthMin}" MaxValue="18" cal:Message.Attach="[Event ValueChanged] = [Action AbilityChandged()]" />


This WILL trigger the AbilityChanging function on my DataContext.

<sf:UpDown Grid.Row="1" Grid.Column="1" NumberDecimalDigits="0" TextAlignment="Center" Margin="10,0,10,0" Value="{Binding Character.Strength.BaseValue}" Step="1" MinValue="{Binding Character.Class.StrengthMin}" MaxValue="18" cal:Message.Attach="[Event ValueChanging] = [Action AbilityChanging()]" />


4 Replies

SN Sudharsan Narayanan Syncfusion Team November 11, 2021 05:33 AM UTC

Hi Joshua,


Thanks for contacting Syncfusion Support,

We have checked the reported issue that “Event does not trigger in Caliburn” from our end. We are unable to reproduce the issue. So can you please check with the below code,

Code Snippet:

cal:Message.Attach="[Event ValueChanged] = [Action AbilityChanged($datacontext)]"/>


If you are still facing the same issue, could you please share the issue reproducing sample?
It will be more helpful for us to find the exact cause for the issue and to provide a prompt solution.

Regards,
Sudharsan



JB joshua baker November 11, 2021 10:42 PM UTC

Thank you for the reply. I still have the same issue. I have attached a simple example. n the example i see the popup box for ValueChanging, but not for ValueChanged when i manipulate the updown control.



Thanks for the help.



Attachment: WpfApp1_74d079a5.zip


SN Sudharsan Narayanan Syncfusion Team November 15, 2021 02:35 AM UTC

Hi Joshua,

Thanks for the update,

Currently, we are analyzing your reported issue of “Value Changed not triggered”. We will validate and update you the details on or before 16th November 2021.

We appreciate your patience until then.

Regards,
 
Sudharsan


SN Sudharsan Narayanan Syncfusion Team November 17, 2021 04:13 AM UTC

Hi Joshua,

Thanks for the patience,

We have checked the reported issue that “Value Changed not triggered” from our end. In the Up Down, the Value changing event is
RoutedEvent and ValueChangedevent is PropertyChangedCallBack, so it doesn’t trigger on value change in the Caliburn micro. To achieve the requirement, you can bind the value to a property in View Modal and get notification from View Modal’s setter or INotifyPropertyChanged.PropertyChanged event. 

Regards,
 
Sudharsan

Loader.
Up arrow icon