帮助!!!我有一个导致错误的小应用程序 [英] Help!!! I have a small app that is causing error

查看:42
本文介绍了帮助!!!我有一个导致错误的小应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在遵循此指南:

http://www.uxpassion.com/2008/11/download-free-wpf-ribbon-windows-scenic-office-2007-style/

我用来创建带有功能区菜单的程序,例如在Office 2007中

,但是当我对其进行投标时,出现错误,提示方法必须返回类型"

这是我的代码:

MainWindow.xaml.cs

So i am following this guide:

http://www.uxpassion.com/2008/11/download-free-wpf-ribbon-windows-scenic-office-2007-style/

that I am using to create a program with a ribbon menu like in office 2007

but when i buid it, I get an error saying "Method must have a return type"

here is my code:

MainWindow.xaml.cs

using
 System;
using
 System.Collections.Generic;
using
 System.Linq;
using
 System.Text;
using
 System.Windows;
using
 System.Windows.Controls;
using
 System.Windows.Data;
using
 System.Windows.Documents;
using
 System.Windows.Input;
using
 System.Windows.Media;
using
 System.Windows.Media.Imaging;
using
 System.Windows.Shapes;

namespace
 AppLauncher
{
	///
 <summary>



	///
 Interaction logic for MainWindow.xaml


	///
 </summary>



	public
 partial
 class
 MainWindow : Window
	{
		public
 Window()
		{
			this
.InitializeComponent();

			// Insert code required on object creation below this point.

		}
	}
}

推荐答案

您的构造函数错误.


这篇关于帮助!!!我有一个导致错误的小应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆