Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have image control binded with a click trigger. On a certain condition I want it to be disabled to avoid the image to click. Below is my code for binding of trigger.

XML
<Image Height="32" Width="32" Source="/StoredImages/AppImages/Organization.png" Grid.Row="1" Grid.Column="1" Tag="CRMSetting" x:Name="imgCRMSetting" Cursor="Hand">
                                   <i:Interaction.Triggers>
                                       <i:EventTrigger EventName="MouseLeftButtonUp">
                                           <i:InvokeCommandAction Command="{Binding ShowChildCommand}" CommandParameter="{Binding Tag, ElementName=imgCRMSetting}" />
                                       </i:EventTrigger>
                                   </i:Interaction.Triggers>
                               </Image>
Posted
Updated 2-Nov-13 19:12pm
v2

1 solution

put image control in container or convas an disable that
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900