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

The Archive Base Latest Questions

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

I do not know what the container/control im looking for would be called, so

  • 0

I do not know what the container/control im looking for would be called, so I cannot really search for it.

Add More of Same Usercontrol Usercontrol

enter image description here

  • Clicking on + would add a new instance of My Usercontrol to the right of the existing ones
  • Clicking on X would dispose the usercontrol that was clicked
  • I’m not really looking for a tab control that would put each new instance on a new tab, but if there is nothing else then it might do.
  • The design is not to be as shown in the image obviously, the image just illustrates the basic idea

Any keyword/name suggestions or links to existing implementations?

e.g. Maybe there is a style that turns a ListBox into something suitable?

  • 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-27T00:53:44+00:00Added an answer on May 27, 2026 at 12:53 am

    I would use an ItemsControl and customize it’s ItemsPanelTemplate to be whatever you want.

    ItemsControls are meant for iterating through a collection of objects, and displaying them in whatever form you want. I wrote some simple code samples of them here if you’re interested, or here’s another quick example:

    <DockPanel x:Name="RootPanel">
        <Button Style="{StaticResource AddButtonStyle}"
                DockPanel.Dock="Right" VerticalAlignment="Center"
                Command="{Binding AddItemCommand" />
    
        <ScrollViewer>
            <ItemsControl ItemsSource="{Binding MyCollection}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
    
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <local:MyUserControl />
    
                            <Button Style="{StaticResource RemoveButtonStyle}"
                                Command="{Binding ElementName=RootPanel, Path=DataContext.RemoveItemCommand}"
                                CommandParameter="{Binding }"
                                HorizontalAlignment="Left" VerticalAlignment="Top" />
                        </Grid>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </ScrollViewer>
    </DockPanel>
    

    Your ItemsControl would be bound to an ObservableCollection of objects, and your Add/Remove buttons would simply add/remove items from that collection. Since it is an ObservableCollection, it will notify the UI when the collection gets changed and automatically update.

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

Sidebar

Related Questions

I am sorry for the title but I really do not know how to
I would like to know how to add some additional child nodes to a
Given two objected that do not contain reference loops within them, do you know
If you do not know what Pipe Viewer is (I did not know about
I do not know javascript right now but I am planning on learning it.
I do not not know much about Regex, I want to try parsing sting
I know many people who use computers every day, who do not know how
I faced a little trouble - I do not know if I can define
Somewhere some guy said (I honestly do not know where I got this from),
To recap for those .NET gurus who might not know the Java API: ConcurrentHashMap

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.