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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:05:49+00:00 2026-06-14T14:05:49+00:00

Is there a way to use a visual XAML designer to author WPF Custom

  • 0

Is there a way to use a visual XAML designer to author WPF Custom Controls, just like you would with User Controls?

As far as I can see there is nothing like this in Visual Studio 2010 and 2012. I’ve also looked at Expression Blend 4 and none of them seem to support this.

I find this hard to believe as it seems to me like this would be an obvious and necessary feature.

Just to be clear, I’m looking for a XAML editor where I would visually see the result of the XAML as a rendered control as I work with it, exactly like you would when authoring a User Control in Visual Studio 2010.

  • 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-14T14:05:50+00:00Added an answer on June 14, 2026 at 2:05 pm

    Here’s one thing that I’ve come up with:

    1. In Visual Studio 2010 create a new WPF Custom Control project.
    2. Add a new resource dictionary called CustomControl1Dictionary.xaml.
    3. Add a new User Control called CustomControl1View.xaml.
    4. Change the code in the project like this:

      CustomControl1Dictionary.xaml

      <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                          xmlns:local="clr-namespace:WpfCustomControlLibrary1">
          <Style TargetType="{x:Type local:CustomControl1}">
              <Setter Property="Template">
                  <Setter.Value>
                      <ControlTemplate TargetType="{x:Type local:CustomControl1}">
                          <Border Background="{TemplateBinding Background}"
                                  BorderBrush="{TemplateBinding BorderBrush}"
                                  BorderThickness="{TemplateBinding BorderThickness}">
                              <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" FontWeight="Bold">This freaking sucks!</TextBlock>
                          </Border>
                      </ControlTemplate>
                  </Setter.Value>
              </Setter>
          </Style>    
      </ResourceDictionary>
      

      Themes\Generic.xaml

      <ResourceDictionary
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
          <ResourceDictionary.MergedDictionaries>
              <ResourceDictionary Source="/WpfCustomControlLibrary1;component/CustomControl1Dictionary.xaml" />
          </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
      

      CustomControl1View.xaml

      <UserControl x:Class="WpfCustomControlLibrary1.CustomControl1View"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                   xmlns:local="clr-namespace:WpfCustomControlLibrary1"
                   mc:Ignorable="d" 
                   d:DesignHeight="292" d:DesignWidth="786">
          <local:CustomControl1 />
      </UserControl>
      

    This lets me open the user control as a pop-up window and I can see the changes to the XAML that I make in the custom control resource dictionary after I build the project and click on the user control designer.

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

Sidebar

Related Questions

Is there any way to use Google's API to retrieve a user's current zipcode
Is there a way to use visual studio's add assembly reference dialog (or something
We use Visual Source Safe. Is there a way to have the all-files-checked-out-to-me report
Is there a way to use both jquery visual feedback ghost with the snap
I use visual studio 2008, and I would like to know if it is
I'm creating a website in Visual Studio 2010. I would like to use Visual
Is there a way to use the Rest Starter Kit in Visual Studio 2010
Is there a way to disable Intellisense in the XAML editor in Visual Studio
Is there a way to use the Visual Studio 2010 IDE with the Small
Is there any way to use a custom format for assembly versions, when building

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.