public MarkdownEditor() { this.InitializeComponent(); System.Collections.Generic.ICollection <CommandBinding> commandBindings = this.Editor.TextArea.DefaultInputHandler.Editing.CommandBindings; CommandBinding item = commandBindings.Single((CommandBinding cb) => cb.Command == AvalonEditCommands.IndentSelection); commandBindings.Remove(item); this.OriginalDocument = string.Empty; if (DesignerProperties.GetIsInDesignMode(this)) { return; } this.LoadEditorSettings(); this.InitializeCommands(); this.Editor.Loaded += new RoutedEventHandler(this.Editor_Loaded); this.Editor.TextArea.SelectionChanged += new System.EventHandler(this.TextArea_SelectionChanged); }