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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:01:28+00:00 2026-05-21T00:01:28+00:00

I´m creating a smal WPF-Application with 5 Tabs and I´m wondering if it´s a

  • 0

I´m creating a smal WPF-Application with 5 Tabs and I´m wondering if it´s a good idea to seperate the tabs into UserControls. I think it is nice because my XAML-Code is about 400 alines and grows but at the other side i think it´s much work to pass the events to my main window and slows it down. Maybe i could work with the events at the UserControls but then I need solutions to have access to variables in my main window.

So what would you recommend me?

  • 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-21T00:01:28+00:00Added an answer on May 21, 2026 at 12:01 am

    It really depends on how simple your application is and how resilient to change it needs to be. If this is a throw away app then no, you don’t need to split things out into user controls, but it may make your life a bit easier. We can’t tell you what you should do because we don’t know your requirements, but creating a user control will definitely make your code easier to change in the future (or during development even) if needed.

    Since you mentioned that this is a relatively small app, use this as a general rule; the moment that managing the controls in each tab becomes a problem, wrap them in a UserControl.

    but at the other side i think it´s much work to pass the events to my main window and slows it down.

    It’s not a lot of work and it definitely isn’t going to cause performance problems.

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

Sidebar

Related Questions

Creating a widget for my site. Check it out at http://bit.ly/w42SC4 . Looks good
Creating an Iphone application, I used to perform INSERT QUERY on different databases. But
Creating My Windows Form Application and using ADO.Net as Data Access layer and SQL
When creating an EditText in the java portion of the application, how do you
Creating a call stack diagram We have just recently been thrown into a big
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
Creating a google map with store locations within 50 miles of user entered address.
(creating a separate question after comments on this: Javascript redeclared global variable overrides old
Creating a server-side socket will fail if I'm trying to use the same port
Creating a JApplet I have 2 Text Fields, a button and a Text Area.

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.