.net Windows 窗体应用程序的现代 UI 应用程序设计

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20161213/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 12:33:15  来源:igfitidea点击:

Modern UI application design for Windows Form Application

.netwinformsvisual-studio

提问by Maven

Ok it's been a long time when I last developed a Windows Form Applicationbut today I am doing it again.

好吧,我上次开发已经很久了,Windows Form Application但今天我又做了一次。

The thing what I see is that Win Form still uses those old style UI tools like button etc. for its application however Microsoft and Windows have changed their design language quite a bit to flat Metro/Modern UI.

我所看到的是 Win Form 仍然使用按钮等旧式 UI 工具作为其应用程序,但是 Microsoft 和 Windows 已将其设计语言更改为扁平化 Metro/Modern UI。

So My Question is there a way to make use to newly style tools for Windows Form Applications? Preferably without using any 3rd party plugin?

所以我的问题有没有办法利用 Windows 窗体应用程序的新样式工具?最好不使用任何 3rd 方插件?

I am working with .Net4.5, On Windows 8.1with VS 2012.

我有工作.Net4.5,在Windows 8.1VS 2012.

回答by Arun Thundyill Saseendran

You have two ways to do this.

您有两种方法可以做到这一点。

  1. If you want to stick on with Win Form Applications, then just change the buttons and controls to flat style in properties and for button, place flat Metro style icons images that suit your application. I am currently doing that to give a new look to my existing application.

  2. As said in the comment, if you are ready to design a whole new application, the WPF is the best choice. If you are targeting the Windows Store, then make use of Blend for Visual Studio 2012. It will assist you in creating professional Windows 8 Applications.

  1. 如果您想继续使用 Win Form 应用程序,那么只需在属性中将按钮和控件更改为平面样式,对于按钮,放置适合您的应用程序的平面 Metro 样式图标图像。我目前这样做是为了让我现有的应用程序焕然一新。

  2. 正如评论中所说,如果您准备设计一个全新的应用程序,WPF 是最佳选择。如果您的目标是 Windows 应用商店,请使用Blend for Visual Studio 2012。它将帮助您创建专业的 Windows 8 应用程序。

回答by gardnerbp

A better option if you are sticking with WinForms is to use a ModernUI framework to help out. See https://www.nuget.org/packages/MetroModernUI/for details on a framework that makes it easy.

如果您坚持使用 WinForms,一个更好的选择是使用 ModernUI 框架来提供帮助。有关简化框架的详细信息,请参阅https://www.nuget.org/packages/MetroModernUI/

回答by Abdullahi Mohamud

Yes, there is another way that you can do it.

是的,还有另一种方法可以做到。

If you are familiar with playing with properties of control and the use of panel control then its so easy than using any other 3rd party (framework).

如果您熟悉控制属性和面板控件的使用,那么它比使用任何其他 3rd 方(框架)更容易。

I have created sample test using flat design without any 3rd Party Window form design that uses Modern flat Design without 3rd part.

我已经使用平面设计创建了示例测试,没有任何使用现代平面设计的第 3 方窗口表单设计,没有第 3 部分。

example

例子