2009-07-23 10 views
0

.Net 2.0プロジェクトを3.5にアップします。WPFウィンドウを起動します。

現在のプロジェクト コード "System.Windows.Forms.Application.Run(winForm);"最初のウィンドウのフォームを作成します

私はWPFウィンドウを呼び出すために同等のものが何であれ伝えることができるかどうか疑問に思っています。

本当にありがとうございました。 Steve

答えて

1

空の新しいWPFプロジェクトを作成してコードを見てみませんか?

<Application x:Class="CRS_GUI.App" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    StartupUri="MainWin.xaml"> 
    <Application.Resources> 

    </Application.Resources> 
</Application> 

これは私の現在のプロジェクトがどのように始まるか、StartupUriを見てください。

2

あなたがC#を使用している場合は、試してみてください。

new Application().Run(new Window()); 
関連する問題