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()]" />
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:
|
|
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
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
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.
Regards,
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,
- 4 Replies
- 2 Participants
-
JB joshua baker
- Nov 9, 2021 01:44 PM UTC
- Nov 17, 2021 04:13 AM UTC