Introduction to the problem
I have a binding in XAML on a property in my view model, called "IsYoungerThanSeventy". Iøm using Prism to call a command on the event TargetUpdated
. At the moment I'm passing Source
(the BinaryQuestion
) using TriggerParameterPath="Source"
.
The problem
I can't pass both Source
and Property
What I want to do
I'd like to also pass the Property
(IsYoungerThanSeventy
) to the same command.
Ultimatly I need both the Source
and Property
in a function I'm calling to update stuff.
My code so far
<wpfQuestionnaire:BinaryQuestion
AnswerRequired="{Binding IsYoungerThanSeventy
, Mode=TwoWay
, NotifyOnTargetUpdated=True}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="TargetUpdated">
<prism:InvokeCommandAction
Command="{Binding PropertyBoundToAnswerRequiredChangedCommand}"
TriggerParameterPath="Source"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</wpfQuestionnaire:BinaryQuestion>