在WPF中开发ERP [英] Developing an ERP in WPF
问题描述
大家好,
我想在WPF中开发一个ERP,众所周知,它由许多Windows组成.
现在我需要一个建议...
将所有子窗口都创建为WPF窗口还是将新窗口添加为UserControls是很好吗?
我有一个主窗口,然后创建了一个名为Stock的子窗口,还有一个名为ucStock
的用户控件.
现在将它作为
添加到MainWindow中
子窗口:
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:
Stock s = new Stock();
s.Owner=this;
s.Show();
或使用UserControl
or using UserControl
ucStock s =new ucStock();
//Grid in MainWindow
mainGrid.Children.Add(s);
告诉我哪一个对主要是好的,因为我有许多子窗口并且想要易于维护..
许多人告诉我使用UserControl
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
推荐答案
在WPF中创建MDI最好使用用户控件,因此您只需要处理一个Window,而它总是很容易维护.很多..
因此,根据我的观点,您可以使用用户控件代替子表单
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
Kishore Jangid
但是对于我来说,维护用户控件比较困难,因为我无法在单个内容框架中打开多个用户控件
因此,取决于您自己想要的是什么,根据您的意见,维护用户控制对您来说比较困难,然后再寻求子表单..
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..
这篇关于在WPF中开发ERP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!