Browse Source

handle delete command inside the outline view

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3524 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Ivan Shumilin 18 years ago
parent
commit
75d75ce3ff
  1. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/WpfViewContent.cs

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/WpfViewContent.cs

@ -23,6 +23,7 @@ using ICSharpCode.WpfDesign.Designer.PropertyGrid; @@ -23,6 +23,7 @@ using ICSharpCode.WpfDesign.Designer.PropertyGrid;
using ICSharpCode.WpfDesign.Designer.Services;
using ICSharpCode.WpfDesign.Designer.Xaml;
using ICSharpCode.WpfDesign.PropertyGrid;
using System.Windows.Input;
namespace ICSharpCode.WpfDesign.AddIn
{
@ -212,6 +213,9 @@ namespace ICSharpCode.WpfDesign.AddIn @@ -212,6 +213,9 @@ namespace ICSharpCode.WpfDesign.AddIn
if (DesignSurface != null && DesignSurface.DesignContext != null && DesignSurface.DesignContext.RootItem != null) {
outline.Root = OutlineNode.Create(DesignSurface.DesignContext.RootItem);
}
// see 3522
outline.AddCommandHandler(ApplicationCommands.Delete,
() => ApplicationCommands.Delete.Execute(null, designer));
}
return outline;
}

Loading…
Cancel
Save