|
|
|
|
@ -6,10 +6,12 @@
@@ -6,10 +6,12 @@
|
|
|
|
|
// </file>
|
|
|
|
|
using System; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Windows; |
|
|
|
|
using System.Windows.Controls.Primitives; |
|
|
|
|
using System.Windows.Input; |
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using System.Windows.Input; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.SharpDevelop.Debugging |
|
|
|
|
{ |
|
|
|
|
@ -26,6 +28,8 @@ namespace ICSharpCode.SharpDevelop.Debugging
@@ -26,6 +28,8 @@ namespace ICSharpCode.SharpDevelop.Debugging
|
|
|
|
|
this.contentControl.containingPopup = this; |
|
|
|
|
this.Child = this.contentControl; |
|
|
|
|
this.IsLeaf = false; |
|
|
|
|
|
|
|
|
|
//this.KeyDown += new KeyEventHandler(DebuggerPopup_KeyDown);
|
|
|
|
|
|
|
|
|
|
//this.contentControl.Focusable = true;
|
|
|
|
|
//Keyboard.Focus(this.contentControl);
|
|
|
|
|
@ -33,6 +37,32 @@ namespace ICSharpCode.SharpDevelop.Debugging
@@ -33,6 +37,32 @@ namespace ICSharpCode.SharpDevelop.Debugging
|
|
|
|
|
//this.PopupAnimation = PopupAnimation.Slide;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// attempt to propagate shortcuts to main windows when Popup is focusable (needed for keyboard scrolling + editing)
|
|
|
|
|
/*void DebuggerPopup_KeyDown(object sender, KeyEventArgs e) |
|
|
|
|
{ |
|
|
|
|
LoggingService.Debug("Unhandled popup key down: " + e.Key); |
|
|
|
|
RaiseEventPair(WorkbenchSingleton.MainWindow, PreviewKeyDownEvent, KeyDownEvent, |
|
|
|
|
new KeyEventArgs(e.KeyboardDevice, e.InputSource, e.Timestamp, e.Key)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// copied from CompletionWindowBase
|
|
|
|
|
static bool RaiseEventPair(UIElement target, RoutedEvent previewEvent, RoutedEvent @event, RoutedEventArgs args) |
|
|
|
|
{ |
|
|
|
|
if (target == null) |
|
|
|
|
throw new ArgumentNullException("target"); |
|
|
|
|
if (previewEvent == null) |
|
|
|
|
throw new ArgumentNullException("previewEvent"); |
|
|
|
|
if (@event == null) |
|
|
|
|
throw new ArgumentNullException("event"); |
|
|
|
|
if (args == null) |
|
|
|
|
throw new ArgumentNullException("args"); |
|
|
|
|
args.RoutedEvent = previewEvent; |
|
|
|
|
target.RaiseEvent(args); |
|
|
|
|
args.RoutedEvent = @event; |
|
|
|
|
target.RaiseEvent(args); |
|
|
|
|
return args.Handled; |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
public IEnumerable<ITreeNode> ItemsSource |
|
|
|
|
{ |
|
|
|
|
get { return this.contentControl.ItemsSource; } |
|
|
|
|
|