Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Can't get action bubbeling to work!

$
0
0
its a problem that is easily over come but is related to nesting and visual tree of wpf/Silverlight. To solve the problem you have to use abit of CM wizardry to overcome the problem:
<telp:RadContextMenu.ContextMenu>
     <telp:RadContextMenu x:Name="ScheduledFlightMenu"  cm:Action.TargetWithoutContext="{Binding DataContext, ElementName=ScheduledFlights}">
          <telp:RadContextMenuItem Content="edit" cm:Message.Attach="EditFlight($dataContext)" />
          <telp:RadContextMenuItem Content="delete" cm:Message.Attach="DeleteFlight($dataContext)" />
      </telp:RadContextMenu>
</telp:RadContextMenu.ContextMenu>  
cm:Action.TargetWithoutContext="{Binding DataContext, ElementName=ScheduledFlights}"

Bold part is the key to your nest issues...

Viewing all articles
Browse latest Browse all 1760

Trending Articles