Loading [MathJax]/extensions/tex2jax.js

2014-11-07

WPFでスタートアップウィンドウを設定する

WPFでは、最初に起動するウィンドウクラスの情報をApp.xamlに記述してます。下記はデフォルトの状態ですが、ここでStartupUriという属性があり、ここで呼び出すウィンドウのxamlファイルに書き換えることで任意のウィンドウを初期起動させることができます。

<Application x:Class="WpfApplication3.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
view raw App.xaml hosted with ❤ by GitHub


0 件のコメント:

コメントを投稿