那就是vs的问题喽,应该和。net framework 版本有关。

解决方案 »

  1.   

    给个链接,貌似得用什么样式。https://social.msdn.microsoft.com/Forums/zh-CN/70987719-8009-4319-9fb6-4ff270d1d69c/inherited-form-in-wpf?forum=wpf
      

  2.   

    http://www.telerik.com/help/wpf/t_telerik_windows_controls_windowbase.html
      

  3.   

    1、打开App.xmal,删除StartupUri那一行:
    <Application x:Class="WpfApplication1.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>2、打开App.xaml.cs,添加自定义启动代码:
        public partial class App : Application
        {

            protected override void OnStartup(StartupEventArgs e)
            {
                base.OnStartup(e);
                MainWindow window = new MainWindow("args");
                window.Show();
            }

        }
      

  4.   

    除了版本其他的都一模一样?
    framework版本一不一样?
    都一样的话那就是VS进步了
      

  5.   


    运行报  在类型“ControlBaseTest.MainWindow”上未找到匹配的构造函数。可以使用 Arguments 或 FactoryMethod 指令来构造此类型。错误。
      

  6.   


    运行报  在类型“ControlBaseTest.MainWindow”上未找到匹配的构造函数。可以使用 Arguments 或 FactoryMethod 指令来构造此类型。错误。
    那就是没找到构造函数呗
      

  7.   


    运行报  在类型“ControlBaseTest.MainWindow”上未找到匹配的构造函数。可以使用 Arguments 或 FactoryMethod 指令来构造此类型。错误。
    那就是没找到构造函数呗 public class WindowBase : Window
        {
      
            public WindowBase(string args, string head = "")
            {         }
    }
     public MainWindow(string args)
                : base(args)
            {
                InitializeComponent();
            }这样应该没问题啊,怎么出错了?我把上边的第二个参数加上也出错