views:

3722

answers:

4

I'm running windows vista and want to get the appearance to look like regular vista programs. Are there any really good tutorials/articles on how to build Vista Style apps? I would also like to learn how to use the native code and convert it to C# like in this example.

+2  A: 

If you want apps for Windows XP to just look 100% like Vista, then it's going to be very complex as you will need to override the way Windows are painted so you can design your own compatible version.

Usually these things are done one the Windows theme-level, sometimes by including special handlers that change the way all apps look.
Then there are tools like FastAero that add transparency to all Windows XP forms (source code available).

In any case, if you want your apps to look Vista-like, you need to respect the Windows User Experience Interaction Guidelines for Aero.

You can also use WPF to fake the Aero-style of controls so your apps will look similar on any version of Windows.

Renaud Bompuis
Sorry...I didn't specify that I already run Vista.
Lucas McCoy
+2  A: 

If you're using WPF you can use Microsoft's Vista Bridge library which has several useful controls. Otherwise, just look at the Windows UX Guidelines and roll your own. From that page:

Some of the features included in the Vista Bridge Sample Library are - Vista style Task and File Dialogs, Common Open and Save dialogs, Application Recovery and Restart, Known Folders, Network Lists, Power Management, User Account Control, CommandLink control, Aero Wizard Control, System provided icons etc.

Additionally, you can check out Aero.Controls and Aero.Wizard, two free open source WinForms packs I wrote that set you up with some standard controls and a wizard, respectively.

Factor Mystic
Thats exactly what I wanted! Thank You! :-)
Lucas McCoy
+1  A: 

You could take a look at a third party solution.

We use DevExpress to achieve nicely styled WinForm apps on WinXP, specifically their WinForms ribbon controls

Gregory
+6  A: 
gix
Thats extremely neat! +1
Lucas McCoy
FWIW, this trick also themes the TreeView control. :) AFAIK, these are the only two controls that are themed by this trick.
Jonas