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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:43:09+00:00 2026-05-14T23:43:09+00:00

for reasons based on storabiligty I have the following objects in a XAML graph:

  • 0

for reasons based on storabiligty I have the following objects in a XAML graph:

  • A WorkArea,
  • Containing WorkSheets,
  • Containing WorkItems

WorkArea, workSheets are ItemsControl instances.

To start: The reason that I am not using standard elements here is that mine are going to get loaded / saved – they represent a business contect (actually the work area of a trading application), and I want those to have as few “surplus” elements as I can. I especially do not want to be tied into user level controls that are from a third party and regularly changing dll names (during upgrades – the major version is encoded there) and I am not sure I will not replace them at all, so I rather go with my own “slim” objects.

The WorkArea corresponds to a window (actually there is a WorkAreaWindow that will take the WorkArea as ContentItem.

The WorkSheets are supposed to work like a TabControl – you can switch between them.

How do I do that? 😉

I get the impression that with the templating mechanisms I could possibly “visuall wrap” the WorkSheets as pages in a TabControl, but I am pretty much totally lost on the how. Anyone can enlighten me?

Here is how far I got:

My Herarchy is WorkArea -> WorkSheet(s) -> WorkItem(s)

WorkArea should be presented as a TabControl, with one tab per WorkSheet.

WorkArea:

        <local:WorkArea x:Name="WorkArea">
            <local:WorkArea.Template>
                <ControlTemplate>
                    <TabControl>
                        <ItemsPresenter />
                    </TabControl>
                </ControlTemplate>
            </local:WorkArea.Template>

            <local:WorkArea.ItemTemplate>
                <DataTemplate>
                    <TabItem Header="{Binding Path=Title}">
                        <ContentPresenter />
                    </TabItem>
                </DataTemplate>
            </local:WorkArea.ItemTemplate>
            <local:WorkSheet Title="Markets">
                <local:WorkTile local:WorkSheet.Row="2" local:WorkSheet.Column="3">
                    test-11

What I can see now is a TabControl, with one Tab. No text, all content in the one tab. Anyone an idea how to split this further?

  • 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-14T23:43:09+00:00Added an answer on May 14, 2026 at 11:43 pm

    You should carefully read Josh Smith’s introduction to MVVM here and look at the demo application source code. The demo application is almost exactly what you are asking for. It generates a tabbed interface dynamically based on custom classes for “contacts” data using data templates, observable collection binding and tabcontrol/tabitem. Some of the MVVM and commanding stuff might not be your thing, but a portion of the code does what you are looking for. The XAML has no code behind at all. You would simply set that data context of your window to your work area class instance that would have an observable collection of worksheets which in turn have an observable collection of workItems and item/data templates will do everything.

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

Sidebar

Related Questions

I have limited knowledge of Java-based technologies, and for business enforced reasons, I may
This isn't meant to be subjective, I am looking for reasons based on resource
For readability reasons I'm trying to avoid using Char based case constructs, using Java
For reasons I won't go into, I need a COM-based tree control with the
I am developing a JSR-286 compliant portlet based on struts 1.2.9 (for historical reasons
I have a web based email application that logs me out after 10 minutes
The SeleniumIDE project is based on Firefox (and its plugin architecture). My application (for
Based on the StackOverflow data dump , it seems that S.O. represents questions and
The specification of HTML4.01 ( http://www.w3.org/TR/html401/struct/tables.html#adef-summary ) states that the table summary attribute should

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.