Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to develop an ERP in WPF and as all knows it consists of many Windows.

Now i need a suggestion that...

Is it good to create all the sub windows as WPF Window or to add new Windows as UserControls

I have a main window and then created a sub window name Stock and also a usercontrol named ucStock


Now adding this to MainWindow as

Sub Window:

C#
Stock s = new Stock();
s.Owner=this;
s.Show();


or using UserControl

C#
ucStock s =new ucStock();
//Grid in MainWindow
mainGrid.Children.Add(s);

Tell me which is good to main as i have many Child windows and want easy to maintain..

Many told me to create MDI in WPF using UserControl
Posted
Comments
SSI13 17-Sep-20 8:41am    
Please let me know How do you connect ERP to WPF. do you make connector internal thus link data ERP to WPF?

Thank you

Its Better to use a User Control so you need to handle only one Window and its always easy to maintain one then many..

so as per my opinion you can use a user control instead of sub form
 
Share this answer
 
Comments
Kishore Jangid 29-Sep-11 6:57am    
But for me maintaing a usercontrol is tougher as, i cant open multiple user control in a single content frame

Kishore Jangid
But for me maintaining a usercontrol is tougher as, i cant open multiple user control in a single content frame


SO its depend up to you that what you want, as per your opinion maintaining user control is tougher for you then go for sub form..
 
Share this answer
 
Comments
Kishore Jangid 1-Oct-11 4:29am    
No man, the problem is how can i open multiple usercontrol window in a single content frame or grid

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