CompositeWPF - starting a new application using the CompositeWPF.Library

The CompositeWPF.Library is a library that I am working on to service the SDMS application.   Among other capabilities it has a modified BootStrapper and TraceLogger (uses trace tool)

  1. Create a new WPF Application
  2. Add references to the CompositeWPF and CompositeWPF.Library
    • Composite
    • Composite.UnityExtensions
    • Composite.Wpf
    • CompositeWPF.Library
    • CompositeWPF.Library.Interface
  3. Update your App.xaml.cs as follows:

    public partial class App : Application
    {
        public App()
        {
            BootStrapper bootStrapper = new BootStrapper(CreateShell, GetType());
            bootStrapper.Run();
        }
        protected DependencyObject CreateShell(IUnityContainer container)
        {
            // Launch our shell
            Window1 shell = container.Resolve<Window1>();
            shell.Show();
            return shell;
        }
    }

 


Tags: ,
Categories:


Actions: E-mail | Permalink |  Grammar/Typo/Better way? Please let me know