Home > Silverlight > TabControl- Silverlight

TabControl- Silverlight

Here is a basic implementation of TabControl in Silverlight. it shows 2 ways you could add items to the control.

see a demo

you can download the sample here

Categories: Silverlight Tags: ,
  1. Oldlaurel
    March 29, 2008 at 7:08 am | #1

    Your controls are very cool. And they are really “controls”, not a “something like controls”. Thank you for great job.

    Links to samples in this post and in http://leeontech.wordpress.com/2008/03/26/expander-in-silverlight/ are the same.
    And no source code for TabControl here. Can you show your TabControl?

  2. lee
    March 29, 2008 at 9:40 am | #2

    Thanks for pointing it out. I have updated the links

  3. Jody
    May 21, 2008 at 9:44 pm | #3

    I had been writing my own Tab Control, but was having some issues when i came across yours. I gave yours a try but i’m having the same problem.

    I’d like to place buttons in the content for a TabItem, and then assign add a Clicked event for them. As usual, I set a x:Name=”btnName” property for the buttons. Then, codebehind automatically creates the variable and adds initialization for it. The problem is that when the app runs, FindName returns null on the name of the button. The same button works fine if defined outside of the TabItem control.

    It seems FindName doesn’t recurse into custom controls? Is there something missing from the custom controls that could correct this?

  4. lee
    May 21, 2008 at 10:05 pm | #4

    willl look into this and see if I can figure out, will post my findings

    Thanks

  1. No trackbacks yet.