Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7708251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:33:54+00:00 2026-06-01T00:33:54+00:00

I’m using WPF MVVM to create a wizard in Excel 2007. The wizard code

  • 0

I’m using WPF MVVM to create a wizard in Excel 2007. The wizard code is based on this internationalized wizard.

Because WPF must be contained within an ElementHost all of my views are user controls, there is no App.xaml. Instead I create my WPF Application when the host WinForm is instantiated and bind my application resources dynamically as described here.

Private _wpfApplication As Windows.Application
Public Sub New()
    ' This call is required by the designer.
    InitializeComponent()
    '   WPF application instance
    _wpfApplication = Application.Current()
    If Application.Current Is Nothing Then
        _wpfApplication = New Application()
    End If
    '   Merge in your application resources.
    _wpfApplication.Resources.MergedDictionaries.Add(TryCast(Application.LoadComponent(New Uri("Pitchbook.Excel.ChartWizard;Component/Themes/Generic.xaml", UriKind.Relative)), ResourceDictionary))
End Sub
Private Sub ChartWizard_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    '   Create the WPF UserControl.
    Dim uc As New MainWindow()
    '   Assign the WPF UserControl to the ElementHost control's child property.
    ehMaster.Child = uc
End Sub

This works fine for the one module I have created so far. I have many modules to create and rather than having a WinForm container for each module I would really like to take the application to the next level by creating a composite application using Prism. I want to somehow have a generic WinForm that plays a similar role to App.xaml. When the user clicks a button on my ribbon I could launch this generic host WinForm bind the Shell.xaml to the ElementHost and use the bootstrapper to load the relevant modules based on some parameter or configuration that maps a ribbon button to a set of modules that should be loaded into the generic host container.

I’m struggling with the logic to do this and I wanted to get some opinions regarding the feasibility of this approach and if it is possible best ways it might be done. Basically I need to add the two layers in red to the existing composite application architecture.

http://www.patternjuggler.org/downloads/officecompositeapp.jpg

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:33:56+00:00Added an answer on June 1, 2026 at 12:33 am

    I think Igor Moochnick goes a long way to answering this question with the following article.

    Office Applications via Prism of Unity

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.