Does using too many UserControls have any disadvantages?

Here I'm in a dilemma. I am developing a wpf window application with a lot of tabs. Each tab's content has some grids with a lot of controls. I am planning to replace the tab's content with UserControls. So I would have a lot of userControls, ie one userControl
per one tab. Plus, in my mainWindow, i could easily pass data from one tab to any class (for processing) by passing in the userControl/s that contains user inputs. In this way I am able to modularize the application and making it easier to handle.
I am wondering if there could be any downside to that that I am not aware of?
  

Since only the contents of the currently selected TabItem of a TabControl is actually added to the visual tree (and then removed when you select another tab), the UI performance won't suffer when you have a lot of tabs.
And "grouping" the controls under each tab into a UserControl seems like a good idea. Then you will also be able to reuse the contents of a TabPage somewhere else in your application if you want to - maybe not now but in the future. Anyway, I cannot
see any direct downside with putting the controls into a UserControl. After all, this is what a UserControl is for.
Please remember to close your threads by marking helpful posts as answer.

Similar Messages

  • This program is stopping because too many errors have occurred.

    I'm putting a game through QA and they found that the Director Projector throws the following error in Windows 7 when the user switches their windows user.
    "This program is stopping because too many errors have occurred."
    To test, I created an empty director projector that does nothing but repeat frame 1 and it throws the same error.  Any thoughts on what could be causing this?

    Has anyone figured out how to fix this problem? It is happening to me in a kiosk that runs 24 hours a day. If I use Log Me In to check on the kiosk remotely, it sometimes throws this error. Log Me In automatically switches to a different user account. After I disconnect from Log Me In session, the error occurs, I suppose when it switches back to the original user.
    This is a big problem, any help will be appreciated.

  • Does loading too many classes into jvm slow down performance?

    hi all,
    does loading too many classes into jvm will slow down performance. Our application is CPU bound, if we use any framework we need to load all the classes related to that framework in JVM. Does this have any effect on the performance of the JVM.
    thanks and regards,
    akmal

    does loading many classes into jvm slow down performance.It will increase the time it takes for the JVM to load your application.
    Our application is CPU boundThe time it takes the JVM to load your application is not likely to be an issue for you then.

  • Cannot Open A Page Because "too Many Redirects Have Occurred"

    I am getting the error "Cannot Open A Page Because too Many Redirects Have Occurred" when I try to access URL after changing device language to Espanol (Mexico). It works fine for English option. Tried the solution given TS3320 but no success. URL also works fine in other browsers like "Chrome". Any help will highly appreciated.
    Thanks in advance.

    hey, i got the same problem before but maybe this solve the problem to you. (on ipad)
    1. go to setting and tap "general"
    2. in privacy section see "accept cookies" and select "from visited"
    some website manage their domain with cookies, a lot of them.  and is more frequently on marketing web sites,  like banks, shopping, etc...
    be sure to select "fraud warning" always. is up to you to accept cookies or not. affortunatly, u can always turn off and on.
    madboypr.

  • Mdworker: (Normal) Import: Using too many resources after 64 files

    Spotlight Eternaly indexing no matter what I do. I've deleted indexes, stopped and started mdutil. Everything to no avail.
    Mar  1 08:03:16 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:21 server mdworker[43987]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/28K/x00_28975.olk14Message, exiting to clean up now.
    Mar  1 08:03:26 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:31 server mdworker[43991]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/31K/x00_31281.olk14Message, exiting to clean up now.
    Mar  1 08:03:36 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:41 server mdworker[43993]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/32K, exiting to clean up now.
    Mar  1 08:03:46 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:03:51 server mdworker[43994]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 140065 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/32K/x00_32815.olk14Message, exiting to clean up now.
    Mar  1 08:03:56 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:01 server mdworker[44032]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142049 swapped: 2 regions: 451), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/33K/x00_33570.olk14Message, exiting to clean up now.
    Mar  1 08:04:06 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:12 server mdworker[44034]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142044 swapped: 2 regions: 448), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/34K/x00_34279.olk14Message, exiting to clean up now.
    Mar  1 08:04:17 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:22 server mdworker[44035]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142046 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/35K/x00_35086.olk14Message, exiting to clean up now.
    Mar  1 08:04:27 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:32 server mdworker[44039]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 142013 swapped: 2 regions: 450), hit usage threshold importing /Users/user/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Data Records/Messages/0T/0B/0M/36K/x00_36629.olk14Message, exiting to clean up now.
    Mar  1 08:04:37 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:42 server mdworker[44047]: (Normal) Import: Using too many resources after 64 files (wired: 0 resident: 177956 swapped: 2 regions: 660), hit usage threshold importing /Users/user/Downloads/2011-11-14.pdf, exiting to clean up now.
    Mar  1 08:04:47 server com.apple.launchd.peruser.505[371] (com.apple.mdworker.prescan.0): Throttling respawn: Will start in 5 seconds
    Mar  1 08:04:53 server mdworker[44048]: Unexpected EOF, returning last token as fallback
    Mar  1 08:04:53 server mdworker[44048]: Invalid char
    do I Need to reinstall Lion? I am losing my mind trying to fix this.

    mdworker is part of Spotlight indexing.  Spotlight as in Commnad-Space or the magnifying glass in the upper right corner of your menu bar.
    You can control Spotlight via System Preferences -> Spotlight
    Message was edited by: BobHarris

  • I want to sterilize the photo CR2 batteries for surgical use. Do you have any specifications?

    I want tot sterilize the phot CR2 batteries for surgical use.  Do you have any sterilization parameters?
    I would like to sterilize these in a low temp Sterad, but I will need data that supports the ability to do this.

    Sorry this is out of our support scope.

  • HT3702 I tried to buy an app but it will not take my card information it said I used too many cards. What do I do to purchase an app.

    I tried to purchase an app. But they would not except my card. They said I had used too many cards. What do I do to purchase apps.

    Hello there, Amy@186.
    The following Knowledge Base article provides some good information on how to proceed:
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/HT1918
    Particularly:
    Get help
    If you need help changing your payment information, contact iTunes Store support.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I get a message saying safari cannot open a page because "too many redirects have occurred". These pages open perfectly well in a rival browser. What is wrong with Safari? My platform is iPad

    I get a message saying safari cannot open a page because "too many redirects have occurred". These pages open perfectly well in a rival browser. What is wrong with Safari? My platform is iPad
    John E Staton

    hey, i got the same problem before but maybe this solve the problem to you. (on ipad)
    1. go to setting and tap "general"
    2. in privacy section see "accept cookies" and select "from visited"
    some website manage their domain with cookies, a lot of them.  and is more frequently on marketing web sites,  like banks, shopping, etc...
    be sure to select "fraud warning" always. is up to you to accept cookies or not. affortunatly, u can always turn off and on.
    madboypr.

  • My device error says I'd has been used too many times

    Device error says Idhas been used too many times

    I would say this is not a question for the Reader forum, but for the Digital Editions one
    http://forums.adobe.com/community/adobe_digital_editions
    If you post there, don't forget to give full details about your setup and your problem.

  • Denied changing Credit Card, said I've used too many?

    I've tried changing Credit Card on My Account, said that I've used too many Credit cards cards and denied access.  Card had Credit left

    Hello there, Amy@186.
    The following Knowledge Base article provides some good information on how to proceed:
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/HT1918
    Particularly:
    Get help
    If you need help changing your payment information, contact iTunes Store support.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Can't get to a specific spot on a website. Am being told I have used too many redirects?, Can't get to a specific spot on a website. Am being told I have used too many redirects?

    I am trying to get to a specific spot on a website. I have signed on and can get to all other sections, but when I try to get to this one section I get a message back saying Safari cannot get to that page, too many redirects? Help?

    Clear. Safari, close it and reset your iPad.
    Go to Settings>Safari>Clear Cookies and Data.
    To close an app, drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the Safari app and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Does having too many apps (like more than 100) affect the iPod Touch 5g's battery

    So with today being the App Store's 5 year anniversary, there are a LOT of top notch apps becoming free, which I have wanted.
    However this worries me - can having too many apps downloaded affect my iPod Touch 5g's performance & battery life?
    Extra Details:
    iPod Touch 5g 32gb, just got it two days ago.
    iI already have over 70 apps

    I say they will only adversely effect performance and battery life if the apps do things when the apps are completely shut down. By shutdown I mean the app are not in the recently used row when yo double click the Homne button. By doing something I mean that sme apps are always checking for things like when you get a notification.

  • Using lion, do i have any way of printing out on to a cd/dvd

    hi
    i have a epson printer R2880,  i have copied some vhs to dvd and now would like to print on my dvd's but the epson software only works on powder pc! any other ideas, software i may have but not aware of or what i can get  for free or will i have to spent some cash!?
    i do have CS5.0 photoshop, and various of its friends, but limited ability to use them!
    thanks for any help,
    P.S. i don't blame you if you all look and run...................!
    alan

    Hi Alan,
    Although the printers provided the print drivers via Apple Software Update, the Epson site do seems to provide additional CD printing software for Lion.
    Please follow the link below and expend the Utilities section:
    http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=104488&BV_UseBVCook ie=yes&infoType=Downloads&platform=OSF_M_X7
    Hope that may help,
    Shlomi

  • TS3212 Apple appear to have an incorrect version of my email(one letter too many) I have tried many times but there does not seem to be any simple way of correcting this. I have now given them a new hotmail address to enable me to use the apps. Ive update

    Problem as outlined above now changed to using a new hotmail address but this address appears to preclude access to my existing itunes purchased library content?
    Are there any simple solutions to these problems?

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • If I turn off iMessages on my iphone 5 and only use SMS, I am hoping this will this stop ALL my messages going to partners ipad? I only want 2 use SMS and not have any of my messages go to partners ipad so dont want to alter ipad settings.

    My situtation is this, my soon to be ex previously set up an ipad with both our numbers and we share a linked itunes/icloud account so if my phone is off he gets all my messages via his ipad that I DO NOT have access to his ipad at ALL. I can't set up my own itunes account (not yet until I leave him) otherwise he will know I am leaving him and it will cause major problems. So I was hoping that if I turn off iMessages on my iphone 5 and just talk to my family via SMS and NOT touch his precious ipad mini, that he wont be able to get my messages anymore and if I turn off iCloud storage and back up as well on my iphone only. Is this correct? Its just a temporary solution I am hoping. I have searched for days and hours and I just cant find this answer anywhere....
    Do I HAVE to turn off my phone number off or delete it on his ipad? I am really hoping I can just do this at my own end and not touch his ipad in anyway or have to change my itunes id YET. Once I leave him shortly, I will create a whole new ID etc.  I just wanna know if I can do this myself on my iphone only. Please any experienced help would be greatly appreciated. Thank you so very much.

    mazwig wrote:
    I just want to know if I turn off iMessages and iCloud Back up, and ONLY use SMS myself and my family just SMS's me - and do this on my PHONE ONLY and not touch his ipad (so he doesn't know), if he will get any of my messages I send or receive on his ipad please. Its just a temp thing and I just want to take action myself on my own phone and want to know if this will work. Does anyone know?
    SMS messages will not go to the iPad Mini. It's not capable of receving them. If you have access and can do it without it causing a problem, remove your iPhone from the Apple ID Support profile:
    Go to: https://supportprofile.apple.com/MySupportProfile.do
    Log in if not already logged in.
    Click on "Edit Products"
    Click on the "X" to the right of the product.
    Click "Unregister"
    If anyone in your family uses iMessage, they will go to both you and your boyfriend unless you do that.
    To be completely safe, you may want to simply use an alternate message app such as Skype, Viber, Whatsapp (assuming everyone has a smartphone) until the issue is resolved. Google Voice will also allow you to send and receive texts to another number on your phone.
    Best of luck.

Maybe you are looking for

  • Print a PDF from a Crystal Report or CR Viewer?

    Is this possible?  Any hints on how to go about it? I'm not talking about exporting to PDF.  I want the PDF to be a section of the Crystal Report. Thank you in advance. JN

  • Why doesn't my macbook keyboard or mousepad work?

    sometimes my keyboard and mousepad simply stop working. I used to think it was because maybe it was overheating but leaving my macbook alone by itself for a few hours with the lid closed doesn't get it to work. since it simply gets stuck there I'm fo

  • Change of Address

    Hi, I attended a course from Oracle University against Hands-on course requirement in India before 2 weeks. I've completed all the exams too. I've submitted the course submission form and got it approved today. Now, I'm in USA. Will I be able to rece

  • JAAS Login Module development/deployment  - getting en error

    Guys, I have developed a JAAS Login Module (as per the SAP documentation) and configured the J2EE Engine  (as per the SAP documentation) for this module to sit amongst several other standard modules,  but I have a problem. I am unable to get the Modu

  • Error in parsing special characters

    We are getting the following error when we parse a clob with special characters like \226(- special dash char), \231(the "TM"-Trademark logo), \256(the "R"-Registered logo ) "Invalid char in text" when the parser is loaded in the db. But when we trie