Silverlight context menu binding
===

In Silverlight application I have a TreeView with context menu.
The problem arises when I try to use Binding. 
It doesn't work.
Setting simple properties like string works fine.

Something wrong with DataContext:

 1. Context Menu doesn't inherit it from parent control
 2. Context Menu is not a part of visual tree.

I need to take **SelectedNode** from the TreeView and assign it to an attached property.

**DataContext** for Command would be **SelectedNode**.
**Command** I want to bind to the SelectedNode.FooCommand

This works fine for buttons, but fails for ContextMenu.

Below is my code:

<Views:SettingsTreeView x:Name="settingsTreeView" Margin="{StaticResource CommonMargins}">

	<toolkit:ContextMenuService.ContextMenu>
		<toolkit:ContextMenu>
			<toolkit:MenuItem Header="Foo..."

								Commands:Menu.CommandParameter="{Binding ElementName=settingsTreeView, Path=SelectedNode}"
								Commands:Menu.IsConfirm="True" 
								Commands:Menu.ConfirmCaption="Confirm deletion"
								Commands:Menu.ConfirmMessage="Are you sure you want to delete element?">
			</toolkit:MenuItem>
		</toolkit:ContextMenu>
	</toolkit:ContextMenuService.ContextMenu>

</Views:SettingsTreeView>
