Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I'm using graphsharp and to display different pictures in different kinds of vertex, however I couldn't find a way to set only on specific type of vertex that display specific pictures mouse click event. I need only specific vertex to handle the event. can anyone help me?
Posted

1 solution

hi
use below code

XML
<Style>
   <Style.Triggers>
       <Trigger Property="[APropertyOfVertex]" Value="[YourValue]">
           <EventSetter Event="Click" Handler="Click_Handler" />
       </Trigger>
   </Style.Triggers>
</Style>




check event help at

http://graphsharp.codeplex.com/discussions/254701[^]
 
Share this answer
 
Comments
Jen123sml 3-Feb-13 6:29am    
when I add the code you suggest I got an error that says I can't use the trigger not recognize. also I found out the event setter aren't supported in triggers

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