internal override void AttachMainToolbar (Gtk.VBox parent, Components.MainToolbar.IMainToolbarView toolbar)
		{
			titleBar = new TitleBar ();
			var topMenu = new GtkWPFWidget (titleBar) {
				HeightRequest = System.Windows.Forms.SystemInformation.CaptionHeight,
			};
			//commandManager.IncompleteKeyPressed += (sender, e) => {
			//	if (e.Key == Gdk.Key.Alt_L) {
			//		Keyboard.Focus(titleBar.DockTitle.Children[0]);
			//	}
			//};
			parent.PackStart (topMenu, false, true, 0);
			SetupMenu ();

			parent.PackStart ((WPFToolbar)toolbar, false, true, 0);
		}
 public WPFTitlebar (TitleBar titlebar) : base (titlebar)
 {
     this.titlebar = titlebar;
     HeightRequest = System.Windows.Forms.SystemInformation.CaptionHeight;
 }
        internal override void AttachMainToolbar (Gtk.VBox parent, Components.MainToolbar.IMainToolbarView toolbar)
		{
			titleBar = new TitleBar ();
			var topMenu = new WPFTitlebar (titleBar);

			//commandManager.IncompleteKeyPressed += (sender, e) => {
			//	if (e.Key == Gdk.Key.Alt_L) {
			//		Keyboard.Focus(titleBar.DockTitle.Children[0]);
			//	}
			//};
			parent.PackStart (topMenu, false, true, 0);
			SetupMenu ();

			parent.PackStart ((WPFToolbar)toolbar, false, true, 0);
		}
Beispiel #4
0
 public WPFTitlebar(TitleBar titlebar) : base(titlebar)
 {
     this.titlebar = titlebar;
     HeightRequest = System.Windows.Forms.SystemInformation.CaptionHeight;
 }