MonoDevelop.Components.Commands.CommandManager.SetRootWindow C# (CSharp) Method

SetRootWindow() public method

Sets the root window. The manager will start the command route at this window, if no other is active.
public SetRootWindow ( Window root ) : void
root Window
return void
		public void SetRootWindow (Window root)
		{
			if (rootWidget != null)
				rootWidget.KeyPressEvent -= OnKeyPressed;
			
			rootWidget = root;
			rootWidget.AddAccelGroup (AccelGroup);
			RegisterTopWindow (rootWidget);
		}