C# - 自定义 GUI 设计
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12871495/
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
C# - Custom GUI Design
提问by Duncan Palmer
So over the years I have seen quite a few C# and VB applications which have custom UI designs. One of which I can give an example of is the DayZCommander (C#) application which looks like this:
所以多年来我看到了很多具有自定义 UI 设计的 C# 和 VB 应用程序。其中一个我可以举个例子的是 DayZCommander (C#) 应用程序,它看起来像这样:


I was wondering this because I wanted to start making login forms which look like this (note this is just a photoshop render):
我想知道这一点,因为我想开始制作看起来像这样的登录表单(注意这只是一个 Photoshop 渲染):


And just use it for overall form design.
并将其用于整体表单设计。
If you can give me some information, or an answer on this topic please do.
如果你能给我一些信息,或者关于这个主题的答案,请做。
Thanks.
谢谢。
采纳答案by Nasreddine
First of all you'll have to use WPF to easily achieve these kinda results (It might be possible with WinForms but it will very hard).
首先,您必须使用 WPF 来轻松实现这些结果(使用 WinForms 可能会实现,但会非常困难)。
You can also use 3rd party controls like MahApps Metro(also available using NuGet). Here's an example of what you can end up with :
您还可以使用 3rd 方控件,如MahApps Metro(也可以使用 NuGet)。这是您最终可以得到的示例:


You have also tools like Microsoft Expression Blendthat will make creating animated UIs/Custom control templates very easy. but sooner or later you'll to dive in XAML to create your own custom control templates but that's beyond the scope of this answer (there are plenty of good tutorials online).
您还拥有Microsoft Expression Blend等工具,可以非常轻松地创建动画 UI/自定义控件模板。但是迟早你会深入研究 XAML 来创建你自己的自定义控件模板,但这超出了这个答案的范围(网上有很多很好的教程)。

