public ConsoleTW() { Caption = "Cosmos Console"; BitmapResourceID = 301; BitmapIndex = 1; var xUserControl = new ConsoleUC(); Content = xUserControl; mUserControl = xUserControl; }