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

Advertisements

4 thoughts on “TabControl- Silverlight

  1. 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?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s