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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:56:49+00:00 2026-05-20T13:56:49+00:00

Is it possible in WPF to provide an alternate class which should be used

  • 0

Is it possible in WPF to provide an alternate class which should be used as the control to show in the designer instead of the control itself, just like DesignerAttribute does for WinForms?

EDIT:
What I’m looking for is what happens with e.g. the ReportViewer class does. This class has an associated class ReportViewerDesigner which is used in the designer instead of the ReportView class itself.

  • 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-20T13:56:49+00:00Added an answer on May 20, 2026 at 1:56 pm

    You can manipulate the Metadata Store; since WPF separates the designer metadata into a separate assembly as noted in the MSDN.

    In the System.ComponentModel
    framework, a designer type is
    associated with its corresponding
    component through the
    DesignerAttribute metadata attribute.
    This means the relationship is
    established at compile time, forcing a
    hard-coded dependency between the
    component’s run-time and design-time
    behavior. To attach a different
    designer, you must change the
    DesignerAttribute declaration and
    recompile the component’s code base.

    In the WPF Designer, designer metadata
    is factored into a separate assembly,
    physically decoupling it from the
    run-time implementation. This freedom
    means that different tools can present
    completely different design
    experiences for the same run-time
    type. For more information, see
    Metadata Store.

    A concrete example of this is the VS designer versus the Expression Blend designer.

    EDIT:

    As noted in the comments section they are fundamentally different approaches. It is not a 1:1 by any means; just as is with a WinForms versus WPF approach to building an application. If you are looking for an elusive attribute which will simply use a differing class as the designer representation; it does not exist. There are certainly ways to achieve what you want and allow the designer to display a given control in a myriad of ways but the approach is not like that of WinForms.

    • How To: Use the Metadata Store
    • WPF Designer Extensibility
      Architecture
      (look at Designer Instance Creation)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to add checkboxes to the WPF TreeView object? I'd like to
Is it possible to show a splash screen in WPF that has animation. I
I'm not even sure if this is even possible, but I've just started WPF
In WPF, is it possible for a DataTrigger to bind to an attached property?
Is it possible to convert an existing WPF Application to SilverLight automatically/with minimal effort?
Is it possible to have a WPF window/element detect the drag'n'dropping of a file
Is it possible to find out whether WPF Window is loaded? I have a
Is it possible to set code behind a resource dictionary in WPF. For example
How is it possible to programmatically select an item in a WPF TreeView ?
i wonder if it is possible to cascade converters when using wpf databinding. e.g.

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.