Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Object behavior in MainWindow?
Message
From
26/04/2010 06:14:49
Antonio Llano
Inmollano S.L.
Getxo, Spain
 
 
To
25/04/2010 11:29:11
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01461942
Message ID:
01461986
Views:
35
Hi Guy,

The MainWindow class is derived from mmBaseWindow and the mmBusinessWindow or mmBusinessmaintWindow are derived from mmBaseWindow too. So, the only thing you should do is to derive your MainWindow from the mmBusinessWindow class in the MainWindow.xaml.cs file. Just change mmBaseWindow to mmBusinessWindow.

Instead of:
using OakLeaf.MM.Main.WPF;

namespace YourNamespace
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : mmBaseWindow
Change the class definition to:
using OakLeaf.MM.Main.WPF;

namespace YourNamespace
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : mmBusinessWindow
Then in your MainWindow.xaml file you should change mmwpf:mmBaseWindow to mmwpf:mmBusinessWindow in the first and last lines of the code and in the windows resources mmwpf:mmBaseWindow.Resources open and close line.

I hope it will help you.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform