How does SoapBox Core work internally (in broad strokes)?

asked 31 May '10, 23:22

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
696262833
accept rate: 50%


SoapBox Core uses MEF for both Extensibility and Inversion of Control. The startup executable is always SoapBox.Core.Host.exe. This takes care of searching the local directory for more "parts", and then composing them into a complete application, and executing the main window. If you're really interested in how the Host works, you can see the source code here.

Part of the startup tasks are to import any resource dictionaries that the various parts have exported, and add them all to the application resources merged dictionary. This is how SoapBox Core really takes WPF and MVVM to the next level. In your Add-In, define a ViewModel class and then implement the View as a DataTemplate. Put the DataTemplate in a ResourceDictionary and Export it. The Host will Import it into the Application Resources and WPF will take care of applying the View to the ViewModel whenever it sees the ViewModel in the visual tree.

If you want a more in-depth tutorial about how SoapBox Core works, check out the CodeProject article about Soapbox Core.

link

answered 31 May '10, 23:23

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
696262833
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23
×2

Asked: 31 May '10, 23:22

Seen: 5,868 times

Last updated: 31 May '10, 23:23

powered by OSQA