How can i convert this long format to short inline format. I tried with various combinations but none worked. I always get the parameter as null.
<i:Interaction.Triggers>
<i:EventTrigger EventName="GotFocus">
<cal:ActionMessage MethodName="SelectTool">
<cal:Parameter Value="{StaticResource contrastTool}" />
</cal:ActionMessage>
</i:EventTrigger>
</i:Interaction.Triggers>
I tried with this:
cal:Message.Attach="[Event GotFocus] = [Action SelectTool({StaticResource contrastTool})]"
but this doesn’t work
It can be solved using Caliburn.Micro Contrib (also available via Nuget).
To enable XamlBinding, insert below code in your bootstrapper
Then in Xaml you may use