简体   繁体   English

创建一个 WPF UI……如果在 VS2008 中使用设计器,我应该打扰吗?

[英]Creating a WPF UI… should I bother, if using the designer in VS2008?

I am choosing between using WPF or Windows Forms for my application UI.我在为我的应用程序 UI 使用 WPF 或 Windows Forms 之间进行选择。 We use Visual Studio 2008, and not the latest 2010.我们使用 Visual Studio 2008,而不是最新的 2010。

To those who have created WPF apps in VS2008/2010: Is the designer mature enough in VS2008 to create a WPF app?对于那些在 VS2008/2010 中创建 WPF 应用程序的人:设计师在 VS2008 中是否足够成熟,可以创建 WPF 应用程序? Or should I stick with Windows Forms?还是我应该坚持使用 Windows Forms?

Thanks.谢谢。

I've created a couple of good-sized applications using WPF and VS 2008. The designer is OK--what I found is that I ended up directly editing the XAML by hand.我已经使用 WPF 和 VS 2008 创建了几个大型应用程序。设计师还可以——我发现我最终直接手动编辑了 XAML。 So the designer became more of a "print preview" for what I typed rather than a tool I used to create the markup.因此,设计师对于我输入的内容更像是一个“打印预览”,而不是我用来创建标记的工具。

For any non-trivial UI things (animations' being a prime example), I would encourage you to take a look at Expression Blend.对于任何重要的 UI 事物(动画是一个典型的例子),我鼓励你看看 Expression Blend。 Once you get past the "graphics designer-y" interface, it provides a much nicer way to specify animations.一旦您通过“图形设计器-y”界面,它提供了一种更好的方式来指定动画。

VS 2010/.NET 4 provide some nice improvements, but you should certainly be able to accomplish what you're looking for in VS 2008. VS 2010/.NET 4 提供了一些不错的改进,但您当然应该能够在 VS 2008 中完成您正在寻找的东西。

One aspect that might be of interest is that using Winforms allows the application to run on other systems using Mono , eg Linux and Mac OS X. (The inverse statement is more intuitive though, it will not work if you choose WPF because Mono does not implement it.) One aspect that might be of interest is that using Winforms allows the application to run on other systems using Mono , eg Linux and Mac OS X. (The inverse statement is more intuitive though, it will not work if you choose WPF because Mono does not执行它。)

Also: Don't use designers, and if you have to, try to get Blend.另外:不要使用设计师,如果必须,请尝试使用 Blend。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM