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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:08:12+00:00 2026-05-16T22:08:12+00:00

I have created a custom control in C# ( Overridden methods in Button control

  • 0

I have created a custom control in C# ( Overridden methods in Button control and added new events) . I need to use this control in my wpf application. In WinForms i can use this by ToolBox(right click) --> Choose Items -->Browse. where as in WPF i can not import the custom controls. Is there any way to do this

  • 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-16T22:08:13+00:00Added an answer on May 16, 2026 at 10:08 pm

    might need a rebuild for the certain project then a xaml file should be active. Your custom control should appear in the toolbox. if it doesn’t show. you can do the following:

    in your xaml file, somewhere in the header tag, where you see many of the xmlns:yyy, add a new xmlns: for example:

    <Window
        x:Class="MyProject.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:custom="clr-namespace:MyProject">
    

    where custom is any identifier for the name space and MyProject is the namespace. Dont worry about this because when you type “xmlns:custom=” (without the quotes) intellisense will give you choice of existing namespaces currently referenced. so just choose the appropriate namespace from the drop down and press enter.

    now scroll down to where you want to put your custom control and:

    <custom:MyControl Content="Click Me!" Click="Button_Click" />
    

    custom:MyControl is from the xmlns:custom (above) and the Control name, MyControl
    Content is the Content property assigned “Click Me!” and Click is the Click event with the handler “Button_Click”.

    Hope this helps!

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

Sidebar

Related Questions

We're writing an application for Windows tablet PCs. I have created a custom control
I have created a custom control which derives from Panel. I use it to
I am working with a Wpf application. I have created a custom style for
I have created a custom control but I can't bind a property to the
Basically, I have created a custom control that uses an UpdatePanel, and as I
I have created a Dynamic View Panel custom control and want to add a
I am working on a custom control and have created a property in property
I have to create a custom compound button bar control in Android like the
I have created a custom Server control that processes some data, stores that data
I have created a custom server control with properties implementing the ITemplate interface. It

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.