如何使用色带和其他UI控件? [英] How to Use Ribbons and Other UI Controls ?

查看:81
本文介绍了如何使用色带和其他UI控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用SQL Server 2008的Visual Studio 2013中使用VB.NET。



我想使我的应用程序的界面更像In Office 2013。 br />
问题是我不知道如何使用Ribbon控件和所有其他UI控件(如Grid,TextBox,ComboBox,TabControl等)来使我的应用程序的界面就像Office 2013.



任何人都可以帮助我!



我会很感激谁会指导我。



谢谢!



最好的问候:

Muhammad Asim Mughal。

I am working in VB.NET in Visual Studio 2013 with SQL Server 2008.

I want to make my application's Interface More Beautiful like Like Office 2013.
The Problem is that i don't know how to use Ribbon Controls and all other UI controls like Grid, TextBox, ComboBox, TabControl etc to make my application's Interface just Like Office 2013.

Can anyone help me !

I will be grateful to whom who will guide me.

Thanks!

Best Regards:
Muhammad Asim Mughal.

推荐答案

Office团队不仅充分利用了Ribbon,TextBox或TextBlock代码。相反,他们的团队自己创建了UI,这意味着他们不仅仅坚持.NET开发人员为WPF框架提供的默认(内置)控件。您可以对对象进行样式化,或者您可以创建自己的对象,这些对象从这些基类继承以暴露类似的函数并在应用程序上下文中引发相同的事件。



Ribbon,TextBox和类似的控件是为开发人员提供的,用于思考和专注于业务逻辑层,而不是如何为应用程序创建GUI。如果还必须自定义GUI,则可以创建自己的自定义对象,这些对象将继承GUI的这些基类;例如TextBox,Button,TextBlock和Ribbon。 Office团队开始删除Window样式,然后创建自己的所有内容(包括最小化或关闭应用程序的按钮)。例如,请查看 [ ^ ]属性,您可以将其设置为none,并且Window中不会有任何默认边框或按钮。但你必须自己创建它们, GitHub [ ^ ]也使用相同的框架和方法。您可以将GitHub应用程序作为此过程的示例,然后继续锐化应用程序以向其添加更多功能。
The Office team didn't only make a good use of the Ribbon, TextBox or the TextBlock codes. Instead their team created the UI themself, which means that they didn't just stick to the default (built-in) controls provided by the .NET developers for the WPF framework. You can stylize the objects, or you can create your own objects which inherit from these base-classes to expose similar functions and raise the same events in the application context.

Ribbon, TextBox and such similar controls are provided for developers, to think and focus on the business-logic layer and not how to create the GUI for the application. If you also have to customize the GUI, you can create your own custom objects, which would inherit from these base-classes for the GUI; such as TextBox, Button, TextBlock and Ribbon. Office team, started off with removing the Window styles, and then created everything (including the buttons to minimize or close the application) themself. For example, have a look at this[^] property of Window class, you can set it to none and there won't be any default border or button from the Window. But you would have to create them yourself, GitHub[^] also makes use of the same framework and the methodology. You can take the GitHub application as an example for this process, and then continue sharpening the application to add a few more features to it.


这篇关于如何使用色带和其他UI控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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