Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Any one tell me how to use MDI with Ribbon Control ?
Posted
Comments
Sergey Alexandrovich Kryukov 16-Dec-15 22:26pm    
MDI? What are you even talking about?
—SA
kushal mankad 16-Dec-15 23:41pm    
i want to make parent and child from with one ribbon menu control..

1 solution

There is no such thing as MDI in WPF, period. And this is very good.

Microsoft is trying hard to phase out their unfortunate old design which appeared to be pretty viral. As WPF has little to do with most of the Windows API related to UI, so it was a good opportunity. There are many other design elements which are much more convenient for the user and does not torture the developers. For some ideas, please see my past answers:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages,
How to Create MDI Parent Window in WPF?;
How to Create MDI Parent Window in WPF?,
Question on using MDI windows in WPF,
MDIContainer giving error,
How to set child forms maximized, last childform minimized.

—SA
 
Share this answer
 
Comments
kushal mankad 16-Dec-15 23:30pm    
Thanx Sergey Alexandrovich

Can you give some links to create parent and child form with one ribbon menu control.
Sergey Alexandrovich Kryukov 17-Dec-15 0:34am    
Effectively, parent-child relationships between forms is made defunct, for a good reason, excluding MDIChild-MDIParent relationships. But this is about forms.

With WPF, there are no forms either. No forms! Windows resemble forms in many aspects, but are radically different technologically. (Long story, but it's good to know how WPF architecture works.)

So, no forms and not window child-parent relationships for windows. I don't know what you are missing. Their are not needed. I would dub UIElement the central type of WPF, and Window is the only top-level element of hierarchy (it has something to do with Windows API, and other elements don't). Your ribbon is not different from other elements, it's placed in a window in the same way as any other element, such as Button, or Grid, or anything...

All right, if you are getting the idea, will you accept the answer formally?

In all cases, your follow-up questions will be welcome, but perhaps you should understand that your questions are moving into asking "how to do WPF development", and this topic is too wide to cover. Perhaps you should just start doing it (but honestly, read on architecture, and, say, visual vs logical trees, layout model, dependency properties, XAML, templating and binding...)

—SA
kushal mankad 17-Dec-15 0:39am    
Thanx Sergey.

can you give me some links for the wpf developing. or any tutorial link.
Sergey Alexandrovich Kryukov 17-Dec-15 1:25am    
Do be serious.
Start from the very beginning, say, with https://msdn.microsoft.com/en-us/library/aa970268%28v=vs.110%29.aspx...

Then again, are you going to accept the answer formally? So far, you accepted your own "answer" instead. Do you understand that it will be considered as abuse? Not only you posted your non-answer as "solution", you even marked it as "accepted". Please remove it, if you want other members to take you seriously...

—SA
Sergey Alexandrovich Kryukov 17-Dec-15 1:29am    
I just read your fake "answer".

I'm close to make a conclusion that writing any answers for you would be totally useless, you don't hear anything. I clearly told you 1) there are no forms in WPF; 2) no parent-child forms or windows.

And even after that, you are asking about "parent and child form with one ribbon menu control" again. Listen, to get, you need to read and write in human language.

—SA

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