0
將自定義RibbonWindow設置爲默認外殼窗口的過程應該是什麼。 我們從一個模塊獲取這個窗口。我們註冊並初始化了。引導程序中的自定義窗口作爲默認窗口
protected override DependencyObject CreateShell()
{
return new xamRibbonWindow() as DependencyObject;
}
protected override void InitializeShell()
{
base.InitializeShell();
App.Current.MainWindow = (xamRibbonWindow)Shell;
App.Current.MainWindow.Show();
}
Shell在Shell中不是模塊。 RibbonWindow是在模塊內部生成的,我想在引導程序中使用它。 – LastBye
和殼牌是主要項目。 – LastBye