public CodeTemplatePanelWidget(OptionsDialog parent) { this.parent = parent; this.Build(); scrolledwindow1.Child = textEditor; textEditor.ShowAll(); templateStore = new TreeStore(typeof(CodeTemplate), typeof(string), typeof(string)); TreeViewColumn column = new TreeViewColumn(); column.Title = GettextCatalog.GetString("Key"); pixbufCellRenderer = new CellRendererPixbuf(); column.PackStart(pixbufCellRenderer, false); column.SetCellDataFunc(pixbufCellRenderer, new Gtk.TreeCellDataFunc(RenderIcon)); templateCellRenderer = new CellRendererText(); column.PackStart(templateCellRenderer, true); column.SetCellDataFunc(templateCellRenderer, new Gtk.TreeCellDataFunc(RenderTemplateName)); treeviewCodeTemplates.AppendColumn(column); treeviewCodeTemplates.Model = templateStore; templates = new List <CodeTemplate> (CodeTemplateService.Templates); templates.ForEach(t => InsertTemplate(t)); treeviewCodeTemplates.ExpandAll(); treeviewCodeTemplates.Selection.Changed += HandleChanged; options = new Mono.TextEditor.TextEditorOptions(); options.ShowLineNumberMargin = false; options.ShowFoldMargin = false; options.ShowIconMargin = false; options.ShowInvalidLines = false; options.ShowSpaces = options.ShowTabs = options.ShowEolMarkers = false; options.ColorScheme = PropertyService.Get("ColorScheme", "Default"); textEditor.Options = options; textEditor.Document.ReadOnly = true; this.buttonAdd.Clicked += ButtonAddClicked; this.buttonEdit.Clicked += ButtonEditClicked; this.buttonRemove.Clicked += ButtonRemoveClicked; checkbuttonWhiteSpaces.Toggled += CheckbuttonWhiteSpacesToggled; this.treeviewCodeTemplates.Selection.Changed += SelectionChanged; SelectionChanged(null, null); }
public CodeTemplatePanelWidget (OptionsDialog parent) { this.parent = parent; this.Build(); scrolledwindow1.Child = textEditor; textEditor.ShowAll (); templateStore = new TreeStore (typeof (CodeTemplate), typeof (string), typeof (string)); TreeViewColumn column = new TreeViewColumn (); column.Title = GettextCatalog.GetString ("Key"); pixbufCellRenderer = new CellRendererPixbuf (); column.PackStart (pixbufCellRenderer, false); column.SetCellDataFunc (pixbufCellRenderer, new Gtk.TreeCellDataFunc (RenderIcon)); templateCellRenderer = new CellRendererText (); column.PackStart (templateCellRenderer, true); column.SetCellDataFunc (templateCellRenderer, new Gtk.TreeCellDataFunc (RenderTemplateName)); treeviewCodeTemplates.AppendColumn (column); treeviewCodeTemplates.Model = templateStore; templates = new List<CodeTemplate> (CodeTemplateService.Templates); templates.ForEach (t => InsertTemplate (t)); treeviewCodeTemplates.ExpandAll (); treeviewCodeTemplates.Selection.Changed += HandleChanged; options = new Mono.TextEditor.TextEditorOptions (); options.ShowLineNumberMargin = false; options.ShowFoldMargin = false; options.ShowIconMargin = false; options.ShowInvalidLines = false; options.ShowSpaces = options.ShowTabs = options.ShowEolMarkers = false; options.ColorScheme = PropertyService.Get ("ColorScheme", "Default"); textEditor.Options = options; textEditor.Document.ReadOnly = true; this.buttonAdd.Clicked += ButtonAddClicked; this.buttonEdit.Clicked += ButtonEditClicked; this.buttonRemove.Clicked += ButtonRemoveClicked; checkbuttonWhiteSpaces.Toggled += CheckbuttonWhiteSpacesToggled; this.treeviewCodeTemplates.Selection.Changed += SelectionChanged; SelectionChanged (null, null); }
public CodeTemplatePanelWidget(OptionsDialog parent) { this.Build(); scrolledwindow1.Add(textEditor); textEditor.ShowAll(); templateStore = new TreeStore(typeof(CodeTemplate), typeof(string), typeof(string)); TreeViewColumn column = new TreeViewColumn(); column.Title = GettextCatalog.GetString("Key"); pixbufCellRenderer = new CellRendererImage(); column.PackStart(pixbufCellRenderer, false); column.SetCellDataFunc(pixbufCellRenderer, new Gtk.TreeCellDataFunc(RenderIcon)); templateCellRenderer = new CellRendererText(); column.PackStart(templateCellRenderer, true); column.SetCellDataFunc(templateCellRenderer, new Gtk.TreeCellDataFunc(RenderTemplateName)); treeviewCodeTemplates.AppendColumn(column); treeviewCodeTemplates.Model = templateStore; templates = new List <CodeTemplate> (CodeTemplateService.Templates); templates.ForEach(t => InsertTemplate(t)); treeviewCodeTemplates.ExpandAll(); treeviewCodeTemplates.Selection.Changed += HandleChanged; options = new MonoDevelop.Ide.Gui.CommonTextEditorOptions(); options.ShowLineNumberMargin = false; options.ShowFoldMargin = false; options.ShowIconMargin = false; textEditor.Options = options; textEditor.Document.ReadOnly = true; this.buttonAdd.Clicked += ButtonAddClicked; this.buttonEdit.Clicked += ButtonEditClicked; this.buttonRemove.Clicked += ButtonRemoveClicked; this.treeviewCodeTemplates.Selection.Changed += SelectionChanged; SelectionChanged(null, null); checkbuttonWhiteSpaces.Hide(); }
public CodeTemplatePanelWidget (OptionsDialog parent) { this.Build(); scrolledwindow1.Add (textEditor); textEditor.ShowAll (); templateStore = new TreeStore (typeof (CodeTemplate), typeof (string), typeof (string)); TreeViewColumn column = new TreeViewColumn (); column.Title = GettextCatalog.GetString ("Key"); pixbufCellRenderer = new CellRendererImage (); column.PackStart (pixbufCellRenderer, false); column.SetCellDataFunc (pixbufCellRenderer, new Gtk.TreeCellDataFunc (RenderIcon)); templateCellRenderer = new CellRendererText (); column.PackStart (templateCellRenderer, true); column.SetCellDataFunc (templateCellRenderer, new Gtk.TreeCellDataFunc (RenderTemplateName)); treeviewCodeTemplates.AppendColumn (column); treeviewCodeTemplates.Model = templateStore; templates = new List<CodeTemplate> (CodeTemplateService.Templates); templates.ForEach (t => InsertTemplate (t)); treeviewCodeTemplates.ExpandAll (); treeviewCodeTemplates.Selection.Changed += HandleChanged; options = new MonoDevelop.Ide.Gui.CommonTextEditorOptions (); options.ShowLineNumberMargin = false; options.ShowFoldMargin = false; options.ShowIconMargin = false; textEditor.Options = options; textEditor.Document.ReadOnly = true; this.buttonAdd.Clicked += ButtonAddClicked; this.buttonEdit.Clicked += ButtonEditClicked; this.buttonRemove.Clicked += ButtonRemoveClicked; this.treeviewCodeTemplates.Selection.Changed += SelectionChanged; SelectionChanged (null, null); checkbuttonWhiteSpaces.Hide (); }
public EditTemplateDialog(CodeTemplate template, bool isNew) { this.Build(); this.Title = isNew ? GettextCatalog.GetString("New template") : GettextCatalog.GetString("Edit template"); this.template = template; this.entryShortcut1.Text = template.Shortcut ?? ""; this.comboboxentryGroups.Entry.Text = template.Group ?? ""; this.comboboxentryMime.Entry.Text = template.MimeType ?? ""; this.entryDescription.Text = template.Description ?? ""; this.textEditor.Document.MimeType = template.MimeType; this.textEditor.Document.Text = template.Code; checkbuttonExpansion.Active = (template.CodeTemplateType & CodeTemplateType.Expansion) == CodeTemplateType.Expansion; checkbuttonSurroundWith.Active = (template.CodeTemplateType & CodeTemplateType.SurroundsWith) == CodeTemplateType.SurroundsWith; scrolledwindow1.Child = textEditor; textEditor.ShowAll(); textEditor.Caret.PositionChanged += CaretPositionChanged; options = new Mono.TextEditor.TextEditorOptions(); options.ShowLineNumberMargin = false; options.ShowFoldMargin = false; options.ShowIconMargin = false; options.ShowInvalidLines = false; options.ShowSpaces = options.ShowTabs = options.ShowEolMarkers = false; options.ColorScheme = PropertyService.Get("ColorScheme", "Default"); textEditor.Options = options; HashSet <string> mimeTypes = new HashSet <string> (); HashSet <string> groups = new HashSet <string> (); foreach (CodeTemplate ct in CodeTemplateService.Templates) { mimeTypes.Add(ct.MimeType); groups.Add(ct.Group); } comboboxentryMime.AppendText(""); foreach (string mime in mimeTypes) { comboboxentryMime.AppendText(mime); } comboboxentryGroups.AppendText(""); foreach (string group in groups) { comboboxentryGroups.AppendText(group); } textEditor.Document.TextReplaced += DocumentTextReplaced; this.buttonOk.Clicked += ButtonOkClicked; checkbuttonWhiteSpaces.Toggled += CheckbuttonWhiteSpacesToggled; variablesListStore = new ListStore(typeof(string), typeof(CodeTemplateVariable)); comboboxVariables.Model = variablesListStore; comboboxVariables.Changed += ComboboxVariablesChanged; variableStore = new TreeStore(typeof(string), typeof(CodeTemplateVariable), typeof(string), typeof(int)); treeviewVariable.Model = variableStore; treeviewVariable.HeadersVisible = false; treeviewVariable.AppendColumn("", new Gtk.CellRendererText(), "text", 0); CellRendererText nameRenderer = new CellRendererText(); treeviewVariable.AppendColumn("", nameRenderer, delegate(TreeViewColumn col, CellRenderer cell, TreeModel model, TreeIter iter) { nameRenderer.Markup = ((string)model.GetValue(iter, 2)); }); grid = new MonoDevelop.Components.PropertyGrid.PropertyGrid(); grid.PropertySort = MonoDevelop.Components.PropertyGrid.PropertySort.Alphabetical; grid.ShowHelp = true; grid.ShowAll(); grid.ShowToolbar = false; vbox4.Remove(scrolledwindow2); vbox4.PackEnd(grid, true, true, 0); UpdateVariables(); }
public AssemblyBrowserWidget () { this.Build(); TreeView = new ExtensibleTreeView (new NodeBuilder[] { new ErrorNodeBuilder (), new AssemblyNodeBuilder (this), new ModuleReferenceNodeBuilder (), new ModuleDefinitionNodeBuilder (this), new ReferenceFolderNodeBuilder (this), new ResourceFolderNodeBuilder (), new ResourceNodeBuilder (), new NamespaceBuilder (this), new DomTypeNodeBuilder (this), new DomMethodNodeBuilder (this), new DomFieldNodeBuilder (this), new DomEventNodeBuilder (this), new DomPropertyNodeBuilder (this), new BaseTypeFolderNodeBuilder (this), new DomReturnTypeNodeBuilder (this), new ReferenceNodeBuilder (this), }, new TreePadOption [] { new TreePadOption ("PublicApiOnly", GettextCatalog.GetString ("Show public members only"), true) }); TreeView.Tree.Selection.Mode = Gtk.SelectionMode.Single; TreeView.Tree.CursorChanged += HandleCursorChanged; inspectEditor.ButtonPressEvent += HandleInspectEditorButtonPressEvent; TreeView.ShadowType = ShadowType.In; treeViewPlaceholder.Add (TreeView); treeViewPlaceholder.ShowAll (); // this.descriptionLabel.ModifyFont (Pango.FontDescription.FromString ("Sans 9")); this.documentationLabel.ModifyFont (Pango.FontDescription.FromString ("Sans 12")); this.documentationLabel.ModifyBg (Gtk.StateType.Normal, new Gdk.Color (255, 255, 225)); this.documentationLabel.Wrap = true; Mono.TextEditor.TextEditorOptions options = new Mono.TextEditor.TextEditorOptions (); options.FontName = PropertyService.Get<string> ("FontName"); options.ShowFoldMargin = false; options.ShowIconMargin = false; options.ShowInvalidLines = false; options.ShowLineNumberMargin = false; options.ShowSpaces = false; options.ShowTabs = false; options.HighlightCaretLine = true; options.ColorScheme = PropertyService.Get ("ColorScheme", "Default"); this.inspectEditor.Options = options; PropertyService.PropertyChanged += HandlePropertyChanged; this.inspectEditor.Document.ReadOnly = true; this.inspectEditor.Document.SyntaxMode = new Mono.TextEditor.Highlighting.MarkupSyntaxMode (); this.inspectEditor.LinkRequest += InspectEditorhandleLinkRequest; // this.inspectLabel.ModifyBg (Gtk.StateType.Normal, new Gdk.Color (255, 255, 250)); // this.vpaned1.ExposeEvent += VPaneExpose; this.hpaned1.ExposeEvent += HPaneExpose; /* this.notebook1.SwitchPage += delegate { // Hack for the switch page select all bug. // this.inspectLabel.Selectable = false; };*/ this.notebook1.GetNthPage (0).Hide (); this.languageCombobox.AppendText (GettextCatalog.GetString ("Summary")); this.languageCombobox.AppendText (GettextCatalog.GetString ("IL")); this.languageCombobox.AppendText (GettextCatalog.GetString ("C#")); this.languageCombobox.Active = PropertyService.Get ("AssemblyBrowser.InspectLanguage", 2); this.languageCombobox.Changed += LanguageComboboxhandleChanged; this.searchentry1.Ready = true; this.searchentry1.WidthRequest = 200; this.searchentry1.Visible = true; this.searchentry1.EmptyMessage = GettextCatalog.GetString ("Search for types or members"); this.searchentry1.InnerEntry.Changed += SearchEntryhandleChanged; CheckMenuItem checkMenuItem = this.searchentry1.AddFilterOption (0, GettextCatalog.GetString ("Types")); checkMenuItem.Active = true; checkMenuItem.Toggled += delegate { if (checkMenuItem.Active) { searchMode = AssemblyBrowserWidget.SearchMode.Type; CreateColumns (); StartSearch (); } }; CheckMenuItem checkMenuItem1 = this.searchentry1.AddFilterOption (1, GettextCatalog.GetString ("Members")); checkMenuItem1.Toggled += delegate { if (checkMenuItem1.Active) { searchMode = AssemblyBrowserWidget.SearchMode.Member; CreateColumns (); StartSearch (); } }; comboboxVisibilty.InsertText (0, GettextCatalog.GetString ("Only public members")); comboboxVisibilty.InsertText (1, GettextCatalog.GetString ("All members")); comboboxVisibilty.Active = 0; comboboxVisibilty.Changed += delegate { PublicApiOnly = comboboxVisibilty.Active == 0; this.TreeView.GetRootNode ().Options["PublicApiOnly"] = PublicApiOnly; FillInspectLabel (); }; /* this.searchInCombobox.Active = 0; this.searchInCombobox.Changed += SearchInComboboxhandleChanged; */ this.notebook1.SetTabLabel (this.documentationScrolledWindow, new Label (GettextCatalog.GetString ("Documentation"))); this.notebook1.SetTabLabel (this.vboxInspect, new Label (GettextCatalog.GetString ("Inspect"))); this.notebook1.SetTabLabel (this.searchWidget, new Label (GettextCatalog.GetString ("Search"))); //this.searchWidget.Visible = false; typeListStore = new Gtk.ListStore (typeof (Gdk.Pixbuf), // type image typeof (string), // name typeof (string), // namespace typeof (string), // assembly typeof (IMember) ); memberListStore = new Gtk.ListStore (typeof (Gdk.Pixbuf), // member image typeof (string), // name typeof (string), // Declaring type full name typeof (string), // assembly typeof (IMember) ); CreateColumns (); SetInpectWidget (); // this.searchEntry.Changed += SearchEntryhandleChanged; this.searchTreeview.RowActivated += SearchTreeviewhandleRowActivated; this.searchentry1.ShowAll (); this.buttonBack.Clicked += this.OnNavigateBackwardActionActivated; this.buttonForeward.Clicked += this.OnNavigateForwardActionActivated; }
public EditTemplateDialog (CodeTemplate template, bool isNew) { this.Build(); this.Title = isNew ? GettextCatalog.GetString ("New template") : GettextCatalog.GetString ("Edit template"); this.template = template; this.entryShortcut1.Text = template.Shortcut; this.comboboxentryGroups.Entry.Text = template.Group; this.comboboxentryMime.Entry.Text = template.MimeType; this.entryDescription.Text = template.Description; this.textEditor.Document.MimeType = template.MimeType; this.textEditor.Document.Text = template.Code; checkbuttonExpansion.Active = (template.CodeTemplateType & CodeTemplateType.Expansion) == CodeTemplateType.Expansion; checkbuttonSurroundWith.Active = (template.CodeTemplateType & CodeTemplateType.SurroundsWith) == CodeTemplateType.SurroundsWith; scrolledwindow1.Child = textEditor; textEditor.ShowAll (); textEditor.Caret.PositionChanged += CaretPositionChanged; options = new Mono.TextEditor.TextEditorOptions (); options.ShowLineNumberMargin = false; options.ShowFoldMargin = false; options.ShowIconMargin = false; options.ShowInvalidLines = false; options.ShowSpaces = options.ShowTabs = options.ShowEolMarkers = false; options.ColorScheme = PropertyService.Get ("ColorScheme", "Default"); textEditor.Options = options; HashSet<string> mimeTypes = new HashSet<string> (); HashSet<string> groups = new HashSet<string> (); foreach (CodeTemplate ct in CodeTemplateService.Templates) { mimeTypes.Add (ct.MimeType); groups.Add (ct.Group); } comboboxentryMime.AppendText (""); foreach (string mime in mimeTypes) { comboboxentryMime.AppendText (mime); } comboboxentryGroups.AppendText (""); foreach (string group in groups) { comboboxentryGroups.AppendText (group); } textEditor.Document.TextReplaced += DocumentTextReplaced; this.buttonOk.Clicked += ButtonOkClicked; checkbuttonWhiteSpaces.Toggled += CheckbuttonWhiteSpacesToggled; variablesListStore = new ListStore (typeof (string), typeof (CodeTemplateVariable)); comboboxVariables.Model = variablesListStore; comboboxVariables.Changed += ComboboxVariablesChanged; variableStore = new TreeStore (typeof (string), typeof (CodeTemplateVariable), typeof (string), typeof (int)); treeviewVariable.Model = variableStore; treeviewVariable.HeadersVisible = false; treeviewVariable.AppendColumn ("", new Gtk.CellRendererText (), "text", 0); CellRendererText nameRenderer = new CellRendererText (); treeviewVariable.AppendColumn ("", nameRenderer, delegate (TreeViewColumn col, CellRenderer cell, TreeModel model, TreeIter iter) { nameRenderer.Markup = ((string)model.GetValue (iter, 2)); }); grid = new MonoDevelop.Components.PropertyGrid.PropertyGrid (); grid.PropertySort = MonoDevelop.Components.PropertyGrid.PropertySort.Alphabetical; grid.ShowHelp = true; grid.ShowAll (); grid.ShowToolbar = false; vbox4.Remove (scrolledwindow2); vbox4.PackEnd (grid, true, true, 0); UpdateVariables (); }
public AssemblyBrowserWidget() { this.Build(); TreeView = new ExtensibleTreeView(new NodeBuilder[] { new ErrorNodeBuilder(), new AssemblyNodeBuilder(this), new ModuleReferenceNodeBuilder(), new ModuleDefinitionNodeBuilder(this), new ReferenceFolderNodeBuilder(this), new ResourceFolderNodeBuilder(), new ResourceNodeBuilder(), new NamespaceBuilder(this), new DomTypeNodeBuilder(this), new DomMethodNodeBuilder(this), new DomFieldNodeBuilder(this), new DomEventNodeBuilder(this), new DomPropertyNodeBuilder(this), new BaseTypeFolderNodeBuilder(this), new DomReturnTypeNodeBuilder(this), new ReferenceNodeBuilder(this), }, new TreePadOption [] { new TreePadOption("PublicApiOnly", GettextCatalog.GetString("Show public members only"), true) }); TreeView.Tree.Selection.Mode = Gtk.SelectionMode.Single; TreeView.Tree.CursorChanged += HandleCursorChanged; TreeView.ShadowType = ShadowType.In; treeViewPlaceholder.Add(TreeView); treeViewPlaceholder.ShowAll(); // this.descriptionLabel.ModifyFont (Pango.FontDescription.FromString ("Sans 9")); this.documentationLabel.ModifyFont(Pango.FontDescription.FromString("Sans 12")); this.documentationLabel.ModifyBg(Gtk.StateType.Normal, new Gdk.Color(255, 255, 225)); this.documentationLabel.Wrap = true; Mono.TextEditor.TextEditorOptions options = new Mono.TextEditor.TextEditorOptions(); options.FontName = PropertyService.Get <string> ("FontName"); options.ShowFoldMargin = false; options.ShowIconMargin = false; options.ShowInvalidLines = false; options.ShowLineNumberMargin = false; options.ShowSpaces = false; options.ShowTabs = false; options.HighlightCaretLine = true; options.ColorScheme = PropertyService.Get("ColorScheme", "Default"); this.inspectEditor.Options = options; PropertyService.PropertyChanged += HandlePropertyChanged; this.inspectEditor.Document.ReadOnly = true; this.inspectEditor.Document.SyntaxMode = new Mono.TextEditor.Highlighting.MarkupSyntaxMode(); this.inspectEditor.LinkRequest += InspectEditorhandleLinkRequest; // this.inspectLabel.ModifyBg (Gtk.StateType.Normal, new Gdk.Color (255, 255, 250)); // this.vpaned1.ExposeEvent += VPaneExpose; this.hpaned1.ExposeEvent += HPaneExpose; /* this.notebook1.SwitchPage += delegate { * // Hack for the switch page select all bug. * // this.inspectLabel.Selectable = false; * };*/ this.notebook1.GetNthPage(0).Hide(); this.languageCombobox.AppendText(GettextCatalog.GetString("Summary")); this.languageCombobox.AppendText(GettextCatalog.GetString("IL")); this.languageCombobox.AppendText(GettextCatalog.GetString("C#")); this.languageCombobox.Active = PropertyService.Get("AssemblyBrowser.InspectLanguage", 2); this.languageCombobox.Changed += LanguageComboboxhandleChanged; this.searchentry1.Ready = true; this.searchentry1.WidthRequest = 200; this.searchentry1.Visible = true; this.searchentry1.EmptyMessage = GettextCatalog.GetString("Search for types or members"); this.searchentry1.InnerEntry.Changed += SearchEntryhandleChanged; CheckMenuItem checkMenuItem = this.searchentry1.AddFilterOption(0, GettextCatalog.GetString("Types")); checkMenuItem.Active = true; checkMenuItem.Toggled += delegate { if (checkMenuItem.Active) { searchMode = AssemblyBrowserWidget.SearchMode.Type; CreateColumns(); StartSearch(); } }; CheckMenuItem checkMenuItem1 = this.searchentry1.AddFilterOption(1, GettextCatalog.GetString("Members")); checkMenuItem1.Toggled += delegate { if (checkMenuItem1.Active) { searchMode = AssemblyBrowserWidget.SearchMode.Member; CreateColumns(); StartSearch(); } }; comboboxVisibilty.InsertText(0, GettextCatalog.GetString("Only public members")); comboboxVisibilty.InsertText(1, GettextCatalog.GetString("All members")); comboboxVisibilty.Active = 0; comboboxVisibilty.Changed += delegate { PublicApiOnly = comboboxVisibilty.Active == 0; this.TreeView.GetRootNode().Options["PublicApiOnly"] = PublicApiOnly; FillInspectLabel(); }; /* * this.searchInCombobox.Active = 0; * this.searchInCombobox.Changed += SearchInComboboxhandleChanged; */ this.notebook1.SetTabLabel(this.documentationScrolledWindow, new Label(GettextCatalog.GetString("Documentation"))); this.notebook1.SetTabLabel(this.vboxInspect, new Label(GettextCatalog.GetString("Inspect"))); this.notebook1.SetTabLabel(this.searchWidget, new Label(GettextCatalog.GetString("Search"))); //this.searchWidget.Visible = false; typeListStore = new Gtk.ListStore(typeof(Gdk.Pixbuf), // type image typeof(string), // name typeof(string), // namespace typeof(string), // assembly typeof(IMember) ); memberListStore = new Gtk.ListStore(typeof(Gdk.Pixbuf), // member image typeof(string), // name typeof(string), // Declaring type full name typeof(string), // assembly typeof(IMember) ); CreateColumns(); SetInpectWidget(); // this.searchEntry.Changed += SearchEntryhandleChanged; this.searchTreeview.RowActivated += SearchTreeviewhandleRowActivated; this.searchentry1.ShowAll(); this.buttonBack.Clicked += this.OnNavigateBackwardActionActivated; this.buttonForeward.Clicked += this.OnNavigateForwardActionActivated; }