File tree Expand file tree Collapse file tree
WpfDesign.Designer/Project/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<ContextMenu x : Class =" ICSharpCode.WpfDesign.Designer.Extensions.DefaultCommandsContextMenu"
22 xmlns =" http://schemas.microsoft.com/netfx/2007/xaml/presentation"
3- xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4- xmlns : Translation =" clr-namespace:ICSharpCode.WpfDesign.Designer"
5- >
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml" >
64 <MenuItem Command =" ApplicationCommands.Cut" >
75 <MenuItem .Icon>
86 <Image Source =" /ICSharpCode.WpfDesign.Designer;component/Images/Icons.16x16.CutIcon.png" />
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ public partial class DefaultCommandsContextMenu
2626 {
2727 private DesignItem designItem ;
2828
29+ public DefaultCommandsContextMenu ( )
30+ {
31+ SpecialInitializeComponent ( ) ;
32+ }
33+
2934 public DefaultCommandsContextMenu ( DesignItem designItem )
3035 {
3136 this . designItem = designItem ;
Original file line number Diff line number Diff line change 33 xmlns=" http://schemas.microsoft.com/netfx/2007/xaml/presentation"
44 xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml"
55 xmlns:DesignerControls=" clr-namespace:ICSharpCode.WpfDesign.Designer.Controls;assembly=ICSharpCode.WpfDesign.Designer"
6- xmlns:AvalonEdit=" http://icsharpcode.net/sharpdevelop/avalonedit"
7- >
6+ xmlns:AvalonEdit=" http://icsharpcode.net/sharpdevelop/avalonedit"
7+ xmlns:extensions= " clr-namespace:ICSharpCode.WpfDesign.Designer.Extensions;assembly=ICSharpCode.WpfDesign.Designer " >
88 <DockPanel >
99 <DesignerControls : EnumBar
1010 Value=" {Binding Mode}"
1313 <AvalonEdit : TextEditor
1414 x:Name=" uxTextEditor"
1515 SyntaxHighlighting=" XML" ShowLineNumbers =" True"
16- Visibility=" {Binding InXamlMode, Converter={StaticResource CollapsedWhenFalse}}" />
16+ Visibility=" {Binding InXamlMode, Converter={StaticResource CollapsedWhenFalse}}" >
17+ <AvalonEdit : TextEditor .ContextMenu>
18+ <extensions : DefaultCommandsContextMenu />
19+ </AvalonEdit : TextEditor .ContextMenu>
20+ </AvalonEdit : TextEditor >
1721 <ContentPresenter Content =" {Binding DesignSurface}"
1822 Visibility=" {Binding InDesignMode, Converter={StaticResource CollapsedWhenFalse}}" />
1923 </Grid >
You can’t perform that action at this time.
0 commit comments