FIX Referencing context menu as dynamic resource loses data context somehow.

git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@185 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
Philipp Sumi
2013-11-17 23:40:37 +00:00
parent 16ef216a4c
commit f756fcc8a3
2 changed files with 4 additions and 4 deletions

View File

@@ -28,10 +28,10 @@
</Style>
<!-- The taskbar context menu - the first row is a dummy to show of simple data binding -->
<!-- The taskbar context menu - the first row is a dummy to show off simple data binding -->
<!--
The "shared" directive is needed if we reopen the sample a few times - WPF will otherwise
reuse the same context menu again (which will have its DataContext set to the old TaskbarIcon)
The "shared" directive is needed if we reopen the sample window a few times - WPF will otherwise
reuse the same context menu (which is a resource) again (which will have its DataContext set to the old TaskbarIcon)
-->
<ContextMenu
x:Shared="false"