using System;
using System.Windows;namespace CSharp
{
public partial class CodeOnlyWindow : Window
{
public CodeOnlyWindow()
{
this.Title = "Main Window in Code Only";
this.Width = 300;
this.Height = 300;
}
}
}
总是提示找不到Window这个类。
using System.Windows;namespace CSharp
{
public partial class CodeOnlyWindow : Window
{
public CodeOnlyWindow()
{
this.Title = "Main Window in Code Only";
this.Width = 300;
this.Height = 300;
}
}
}
总是提示找不到Window这个类。
Assembly: PresentationFramework (in PresentationFramework.dll)
C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0
应该有Forms。