Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop an application like Google Chrome browser in WPF using C#

I am trying to develop an windows application like Google chrome Browser in WPF

using C#.I am facing problem in making my own Custom Window and Placing Tabs at the Place of the Title Position of that window. Please suggest me how to go for it, is there any tool for this ?

Guide me please..........

Updated:

Hi Friends Thanks for your active responses and I also followed the links you gave and the way you told, but still I have doubts in developing the application please give me some more ideas where I can develop this application by using Google Chrome like controls. I want to give my application Google Chrome like look and feel.....

like image 648
SharpUrBrain Avatar asked Nov 08 '10 08:11

SharpUrBrain


1 Answers

Google Chrome essentially custom-draws the non-client area of its window to remove things that it considers superfluous like the title bar. That's how it gets the tabs to replace the title bar of the window, just like how Microsoft Office places its "pearl" and quick access toolbar in the title area of document windows.

To do something similar in WPF, you may find this article useful: Link

Remember that any time you re-implement the standard windows chrome, you're going to have to handle a bunch of stuff that Windows normally makes transparent to you, like resizing, minimizing, maximizing, moving, and closing a window.

It is worth considering that both Google Chrome and Microsoft Office applications (among others) behave differently depending on whether Aero Glass and the Desktop Window Manager (DWM) are present/enabled. You're going to have to make sure that your application degrades gracefully when these things are missing. I would advise being sure that you can really make a convincing case for the necessity and benefit to the users before you invest all the time and energy it takes to do things like this in your application.

like image 80
Cody Gray Avatar answered Oct 07 '22 21:10

Cody Gray