if (this.contextMenu != null)\r
{\r
// Add the ContextMenu as a logical child (for DataContext and RoutedCommands)\r
+ this.contextMenu.Visibility = Visibility.Collapsed;\r
this.contextMenu.IsOpen = true;\r
DependencyObject current = this.contextMenu;\r
do\r
}\r
while (null != current);\r
\r
- this.contextMenu.IsOpen = false;\r
+ this.contextMenu.IsOpen = false; \r
this.AddLogicalChild(this.logicalChild);\r
\r
this.contextMenu.Opened += this.ContextMenu_Opened;\r
- this.contextMenu.Closed += this.ContextMenu_Closed;\r
+ this.contextMenu.Closed += this.ContextMenu_Closed; \r
}\r
}\r
}\r
{\r
this.contextMenu.HorizontalOffset = 0;\r
this.contextMenu.VerticalOffset = 0;\r
+ this.contextMenu.Visibility = Visibility.Visible;\r
this.contextMenu.IsOpen = true;\r
}\r
}\r