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 3792770
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:40:27+00:00 2026-05-19T12:40:27+00:00

I have UI app extensions in separate dll files I am connecting to through

  • 0

I have UI app extensions in separate dll files I am connecting to through MEF. My question is, if they have a dialog (WPF user control), should I make the dialog a property of the extension like so:

public UserControl ExtDialog { get; set; }

or should I load them in a pack uri?

public string ExtDialogUri { get; set; }

I am leaning to the pack uri, but unsure whether it would actually work. Which way is the more “recommended” way of doing it?

NOTE: These dialogs will be navigated to with the NavigationService.Navigate(); method.

  • 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-05-19T12:40:28+00:00Added an answer on May 19, 2026 at 12:40 pm

    I would use neither of the options. The thing is that both methods lack flexibility in regards of time when the dialog is created. If the first method is used, then the dialog will be created always, no matter whether it is needed or not. With the pack url the problem is that the extensions will not have control over how instances of the dialog are created. What if the control needs to be initialized after creation (view model needs to be created, etc.)?

    In my opinion, it is better to expose a factory that will be used to create the dialog:

    public IExtDialogFactory ExtDialogFactory { get; set; }
    
    public interface IExtDialogFactory
    {
        UserControl CreateDialog(); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an extension where I authenticate the user when they enable to app.
I have app in which i have recorded sound files i want that i
I have two C extensions for Ruby (for a Rails app). I initialize these
For my app, I have a fairly complex set of configuration options that user
I am using Reactive extensions for NET (Rx) with Caliburn.Micro in my WPF app.
We have an app that uses qt mobile extensions, more specifically XQTelephony. The app
I have app.js and routes.js . In app.js I require routes.js . For routes.js
I have app.config in m win application, and loggingConfiguration section (enterprise library 4.1). I
We have App A as main app. Now we build from it App B
for example: I have app A, which references library A and library B. in

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.