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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:27:56+00:00 2026-05-17T00:27:56+00:00

I created a user control called ‘RibbonTabX’ which contains a stackpanel named ‘spMain’. What

  • 0

I created a user control called ‘RibbonTabX’ which contains a stackpanel named ‘spMain’. What I’d like to do, is when I declare an instance of my ‘RibbonTabX’ in xaml, within that same xaml I’d like to specify controls which will be inside the child stackPanel ‘spMain’. Here is the code which will make what I’m trying to do much clearer:

  <ribbon:RibbonTabX strHeaderText="Testing 123...">
          <ribbon:RibbonTabX.spMain>
              <sdk:Label Content="Hello" />
              <sdk:Label Content="World" />
          </ribbon:RibbonTabX.spMain>
   </ribbon:RibbonTabX>

In the parent of RibbonTabX, I want to specify child contents of the stackpanel within my user control ‘RibbonTabX’. Just like you can do with a ‘TabItem’ control. Any ideas how I can do this?

Thanks!

  • 1 1 Answer
  • 1 View
  • 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-17T00:27:57+00:00Added an answer on May 17, 2026 at 12:27 am

    You need to create a custom content control, not a user control.

    Start with this article

    It is more complex than a user control as you have to hand-craft a generic template for it, but they are more versatile.

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

Sidebar

Related Questions

Hi I have created a user control which is inside a folder called Controls
I'm using VB.Net. I have a WPF User Control called NavigationPanel which I created
I have created a user control which exposes a custom type property called SoftwareItem.
I have created a user control (link) which has a label and a button.
I've created a user control which has multiple textboxes, comboboxes etc. The user control
I have created a user control (CheckedDirTree) that exposes a CheckedFolder property which in
I created a DatePicker user control (ASP code below, no code behind) which is
I have created a web user control called Activity. I have defined a public-facing
I am developing a WPF application, and I have created a user control called
I've created an user control element which has a button with an individual style.

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.