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

  • Home
  • SEARCH
  • 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 608609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:28:44+00:00 2026-05-13T17:28:44+00:00

Curious if there are any disadvantages to using an ElementHost to host a WPF

  • 0

Curious if there are any disadvantages to using an ElementHost to host a WPF UserControl in a Winform application?

I ask because in general I feel that it takes to much time for me create a new WPF application with a basic interface that looks decent. Decent in the sense that if I create a new Winforms application and throw some controls on it I end up with a basic interface that looks and behaves similar to many other applications but doesn’t look plain. If I do the same thing with a WPF application I don’t feel I achieve the same results, I end up with a “plain” application with a white background unless I change roles to designer and spend extra time to make it look a certain way.

However there are cases where WPF is desirable to me for it’s relative ease of creating a stylized interface. Consider a video player control; in WPF I can create something that looks very nice and custom but took much less time and effort than a Winforms control. In these cases it makes sense for me to use WPF since I end up spending less time than I would have overiding OnPaint :-).

I realize I’m using a lot of subjective terms but this is my reasoning behind the original question.

Update:

Just to clarify my “video player control” example. Not only does WPF give me the MediaElement to play with but if I want to say, overlay a Play button on the video when it is paused or if I wanted a semi-transparent “play/pause/stop/volume” bar to show up when the mouse in in a certain location, WPF makes that much simpler than any Winforms alternative.

Edit:

Maybe I have a configuration option wrong or something but it’s also frustrating the the “Description” section disappears when I am looking at a WPF vs. Winforms Control. Even more frustrating that pressing F1 in a WPF property form doesn’t take you to the specific property/event you were on.

Update:

Any one else? I’m more concerned about performance impacts and/or feature limitations that would be introduced by hosting the WPF UserControl in an ElementHost. So far it sounds like there is the onetime overhead of the runtime but is that all?

  • 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-13T17:28:45+00:00Added an answer on May 13, 2026 at 5:28 pm

    I see a few potential disadvantages.

    First, you now have two ways of displaying UI. This can present issues from a maintenance point of view depending the developers touching the code.

    Second, WPF does have a runtime associated with it (for dispatching events, dependency property management, etc, etc), but it’s a one-time cost. If you are using that for a small number of controls, then you are paying a relatively large cost in proportion to it’s usage.

    I wouldn’t say these are deal-breakers, it’s all dependent on your app and your team.

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

Sidebar

Related Questions

Just because I'm curious--is there any C analog to the functionality of the STL
I was always curious is there any possibility to overload function literal, something like
I read this answer and its comments and I'm curious: Are there any reasons
Quick question, I was curious if there is any difference between a database table
I'm curious how to assess if there is any read- or write-activity for a
I'm curious if there are any specific things that I should be aware of
Possible Duplicate: Variable length arrays in C++? I am just curious, is there any
I was curious if there's a .Net API that would allow me to identify
Simple question, but one that I've been curious about...is there a functional difference between
I was curious if anyone out there has experience getting the necessary legal documents

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.