theAviator 0 Newbie Poster

Hi All,

I am testing our product(Which is basically a rule engine) web application using WPF controls.

For that i require to create Constraint rule and selection rule and following is the tree structure:

Workspace->Model-> Folder->Entity and rules.

After creating rules we export Model.xml and store it to disk. And at designing application we use this xml reference to bind the control with our custom control list, num, date and bool entities. Since loading single xml affects the performance we splits them in multiple models (we can create as much as model under workspace)

Now i want to do followin things:

For Constraint Rule and selection rule i want to create separate model and XML . And also at design time separate windows.xaml.

But as in App.xaml we can make use of only one
StartupUri="Window1.xaml" Startup="Application_Startup"

How to load others Xaml say window2.xaml, window3.xaml so on ??

And my second problem is in order to reference above created model i need to add:

private void Application_Startup(object sender, StartupEventArgs e)
        {
            // Initialize the default Rule Engine
            // Additional rule engines can be initialised in the same way
            myRuleEngine = new GenericRuleEngine();
          myRuleEngine.LoadRuleSet(@"C:\WpfXML\ConstraintRule.xml")

to app.xaml.cs. So when i will create ore then one model xml how i will reference them in Application_startup??

Waiting for your prompt suggestion/reply

Thanks in advance

~rakesh