TabControl- Silverlight
March 22, 2008 by lee
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
Posted in Silverlight | Tagged Silverlight, TabControl | 4 Comments
Leave a Reply
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?
Thanks for pointing it out. I have updated the links
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?
willl look into this and see if I can figure out, will post my findings
Thanks