Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I seen someone long time back doing WPF UI. Cant Ask him now. Dont know where he is and even dont have that code with me.

What he did was remove the border of WPF Window, and he created custom handle out of the WPF window client area.

He launched the application fullscreen with all Standard menus and buttons like Minimize, Maximize and Close Window.

Then he was having child Dialogs. He was using some sort of stack for doing child dialogs inside child dialogs. One can see dialog over another dialog drawn in hierarchy. He was using a Stack for storing the dialogs info and the data regarding them.

He also created custom Message Boxes dont know how..

Can someone tell me..

1. How he was handling Dialogs inside one window using a Stack.
2. How he was handling events for windows, dialogs and messageboxes etc which were working just like the native windows stuff.
3. Image attached..

How to do all these stuff in WPF..

Here is some idea what he did
[http://i65.tinypic.com/311t26c.jpg]

Can someone tell?

Is there any project code like this available on web or if someone can share?

Please help?

What I have tried:

I dont know anything about it. Want to try it..
Posted
Updated 2-Jun-16 4:25am
Comments
Richard Deeming 1-Jun-16 11:53am    
Are you looking for something like MahApps.Metro[^]?
Harmanjeet Singh 4-Jun-16 3:10am    
Metro? nope!
Sergey Alexandrovich Kryukov 1-Jun-16 14:16pm    
I have no idea who is "he". Why not asking this person?
I would ask another question: what would it possibly mean, "non-custom UI"? Aren't all UI products "custom"?
Essentially, I cannot see anything which needs help in your post. What's the problem?
—SA
George Jonsson 1-Jun-16 23:42pm    
You seriously want that look of your UI?
Harmanjeet Singh 4-Jun-16 3:10am    
That was just an example for custom UI

1 solution

So you know WPF and aks this questions? Window-Handling is not different in WPF than in other Windows UI technology... But it sounds you don't know much about WPF, do you? So I guess it could be a little hard for you to understand any "answer"...
e.g I use "pure" MVVM aproach in my WPF Projects, therefore I need abstract handling (UI-Tech unaware) for all of this. Dialogs, Messageboxes, Windows, - there are a lot of different approaches to this - maybe do a search on Internet for MVVM+WPF+Dialogs
If you don't use MVVM pattern, and use WPF like WindowsForms - the essential window handling is still the same.. Of course you could simulate dialogs with Panels, ChildWindows (Silerlight?), PopUp Controls etc... Thats the main Problem with WPF (at least for me) - a million ways to do things, I fear you have to find your own!

If I look to your example pic. I don't see anything that is not possible with normal Windows/Dialog handling, I't just a matter of styling your window, and maybe some little additional code (e.g.) if you use Windows without titlebar and want to move them arround you have to add some handlers (MouseDown, MouseMove, ...) to it. Thats all...
 
Share this answer
 
Comments
Harmanjeet Singh 4-Jun-16 3:14am    
I made projects on WPF before. But its not simple WPF UI. Its Custom WPF Dialogs. You are right. He used MVVM.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900