8,731
社区成员
发帖
与我相关
我的任务
分享
<OutOfBrowserSettings ShortName="SilverlightApplication33 应用程序" EnableGPUAcceleration="False" ShowInstallMenuItem="True">
<OutOfBrowserSettings.Blurb>您的桌面上的 SilverlightApplication33 应用程序;在家、工作或旅途中均可使用。</OutOfBrowserSettings.Blurb>
<OutOfBrowserSettings.WindowSettings>
<WindowSettings Title="SilverlightApplication33 应用程序" Height="600" Width="800" WindowStyle="BorderlessRoundCornersWindow" />
</OutOfBrowserSettings.WindowSettings>
<OutOfBrowserSettings.SecuritySettings>
<SecuritySettings ElevatedPermissions="Required" />
</OutOfBrowserSettings.SecuritySettings>
<OutOfBrowserSettings.Icons>
<Icon Size="16,16">xxxx.png</Icon>
</OutOfBrowserSettings.Icons>
</OutOfBrowserSettings>
//最小化
private void btnMinimizeButton_Click(object sender, RoutedEventArgs e)
{
App.Current.MainWindow.WindowState = WindowState.Minimized;
}
//最大化,还原
private void btnMaximizeButton_Click(object sender, RoutedEventArgs e)
{
App.Current.MainWindow.WindowState = App.Current.MainWindow.WindowState == WindowState.Normal ? WindowState.Maximized : WindowState.Normal;
autoSize();
}