So, today it took my colleague and I nearly two hours to figure out why a context menu had grayed out menu items in a WPF application we were writing. We had instantiated the ContextMenu as a static resource, and then we assigned it to the ContextMenu property of a button. Then when the button [...]