关于WPF 3.5(VS2008)中的窗口或框

关于WPF 3.5(VS2008)中的窗口或框,wpf,about-box,Wpf,About Box,我正在寻找关于WPF VS2008的窗口。可以下载任何源代码,也可以自己开发 谢谢你, Harsha微软已经为VS2010提供了一个gee-whiz WPF AboutBox(作为一个可下载的控件,不在产品中),但在我上次查看的VS2008中(大约一个月前)没有这样的猛兽 我最终只是创建了一个WinForms one(来自向导),它工作得很好。然后我发现我可以简化它,只使用硬编码值,因为我不需要任何基于变量的东西: AboutBox1.cs: using System; using System

我正在寻找关于WPF VS2008的窗口。可以下载任何源代码,也可以自己开发

谢谢你,
Harsha

微软已经为VS2010提供了一个gee-whiz WPF AboutBox(作为一个可下载的控件,不在产品中),但在我上次查看的VS2008中(大约一个月前)没有这样的猛兽

我最终只是创建了一个WinForms one(来自向导),它工作得很好。然后我发现我可以简化它,只使用硬编码值,因为我不需要任何基于变量的东西:

AboutBox1.cs:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace Dodgy {
    partial class AboutBox1 : Form {
        public AboutBox1() {
            InitializeComponent();
            this.Text = "About Dodgy Thing";
            this.labelProductName.Text = "Dodgy Thing";
            this.labelVersion.Text = "Version 1.0";
            this.labelCopyright.Text = "Copyright 2010. All rights reserved.";
            this.labelCompanyName.Text = "Dodgy Brothers Software GmbH";
            this.textBoxDescription.Text
                = "Dodgy Thing allows you to do all sorts of dodgy things.";
        }
    }
}
要调用它,只需使用:

AboutBox1 about = new AboutBox1();
about.ShowDialog();

我还没有包括向导中的样板文件,
AboutBox1.Designer.cs
AboutBox1.resx
,因为尝试让我意识到SO的答案有30K的限制(而且它们很粗)。您应该只使用向导提供的内容。

只需创建一个普通的WPF窗口,并使其看起来像一个关于框(为产品名称、版本、版权添加文本块…)

WinForms about box没有什么特别之处,它只是一个预加载了常见about box控件的普通表单,没有理由从WPF使用它。

您可以尝试一下。如果希望从程序集中动态获取版本作者等,请尝试


有什么特别的理由不让你自己玩吗?这只是另一个模式对话框。你能提供一个到微软可下载的VS2010版AboutBox的链接吗?我猜是这个-