private void LoadWindow(object sender, RoutedEventArgs e) { Box.AddHandler(ContextMenuOpeningEvent, new ContextMenuEventHandler(RichTextBox_ContextMenuOpening), true); }