开发者

How do I give professional look and feel to my .NET windows application?

I'm using WINFORMS not WPF.

I just know basic c# .net gui programming. I donot want the traditional windows look. I want to have my own custom look (eg. gtalk, antivirus softwares, media players, google chrome).

Actually I'm inspired by google's PICASA software. Its awesome. I want to do something like that.How can I do that? If there is something I should learn please point me.

Also I may have to write my own custom controls (like modified tree view etc..) I guess. Please giv开发者_如何学JAVAe some good learning resources.


This article describes how to draw custom windows. The author also shows how to draw non-rectangular windows.

If you could use WPF instead of Windows Forms, this is a good article about customizing window drawing:
http://www.codeguru.com/csharp/.net/net_wpf/article.php/c16379/

There is also a question with some good answers here on SO: Creating custom forms in WPF?

Update:
I think that skinning and custom drawing is fun to do from a programmers perspective, but I also think that there is almost no benefit for the user.
The creators of the platform you are developing for might have put a lot of effort into the design of their windowing toolkits.
If you just want to change some visual aspects of your application you also should take into account that you might miss some important other aspects of UI design:

  • consistency
  • accessibility
  • aesthetics (if you are overdoing effects, gradients, ...)
  • internationalization
  • ...

As you are developing for Windows, you also lose the skinning ability of the OS itself. And I think that some of the skins that come with newer versions of Windows are pretty good.


You can try any of the following:

telerik

How do I give professional look and feel to my .NET windows application?

Syncfusion

How do I give professional look and feel to my .NET windows application?


(source: componentsource.co.jp)

Or other components.

They do make your UI pretty.

Edit: if you want to study how they do it, you can buy the source code-- along with documentation and understand from there.


There are some commercial control libraries available. I can recommend the Krypton Suite. It consists of the free Krypton Toolkit (which contains a lot of skinnable controls) and other non-free controls (Navigator, Ribbon, Docking, Workspace). It has some built-in palettes and renderers that allow you to make your UI look like Office 2010, Office 2007, Office 2003, ...


You want to look for +winforms +skinning. I haven't tried these, but the first hits don't look bad. Most decent skinning tools will be paid for.


From what you said, you want to develop your own custom controls. You have some frameworks for this like Qt which can use Direct3D for hardware accelerated graphics. It also have a Visual Studio plugin. There is a free LGPL version and a commercial version of it.

I remembered about Qt because you mentioned Picasa and as far as I remember, I heard the Picasa UI has been written through Qt.


You can try using "SetWindowRgn(..)" to set an arbitrary region for your window. This may range from giving a rounded rectangle shape to giving a weird looking shape to the form! Check this out: Link.

There is another option if you are working in Vista(aero enabled), ie you can check out DwmExtendFrameIntoClientArea(..) function here: link text

You can set the form's border style to 'none' and go on to create your custom form! You then might have to create custom buttons to carry out tasks like close, minimise, maximise etc. You might even need to write code for drag and drop events..

For the background, you might need to have a look at the gradient fills to give a great effect, otherwise you can use great looking pictures as Background..! But the latter option isnt good unless you have really good pic.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜