48

Closed

TabControl doesn't support DataBinding

description

TabControl does not:
  1. Generate TabItems.
  2. Have a ContentTemplate property.
  3. Have a ItemContainerStyle property.
     
    We're planning on fixing this in the Silverlight vNext timeline.
Closed Jun 8, 2011 at 10:20 PM by jeffwilcox
Closing as TabControl is actually not part of the toolkit. We have internal bugs on the control. Thanks!

comments

VictorG wrote Oct 19, 2009 at 8:51 PM

Need to get an AnimatedTabControl to work.

wrote Oct 20, 2009 at 12:43 PM

wrote Oct 23, 2009 at 11:47 PM

wrote Nov 20, 2009 at 5:10 PM

wrote Jan 4, 2010 at 10:19 AM

wrote Jan 11, 2010 at 5:11 PM

wrote Jan 11, 2010 at 5:18 PM

wrote Jan 23, 2010 at 5:51 PM

wrote Jan 31, 2010 at 4:18 PM

wrote Mar 2, 2010 at 2:33 PM

wrote Mar 3, 2010 at 10:30 PM

wrote Mar 16, 2010 at 4:13 PM

wrote Mar 21, 2010 at 8:33 PM

wrote Apr 5, 2010 at 7:48 AM

wrote Apr 23, 2010 at 3:46 AM

wrote May 10, 2010 at 4:39 PM

wrote Jun 23, 2010 at 1:53 PM

wrote Jul 13, 2010 at 6:20 PM

wrote Aug 15, 2010 at 4:16 AM

EisenbergEffect wrote Sep 16, 2010 at 6:20 PM

The following markup (from WPF) should work identically in the Silverlight TabControl:

<TabControl ItemsSource="{Binding Items}" SelectedItem="{Binding ActiveItem, Mode=TwoWay}">
<TabControl.ItemTemplate>
<DataTemplate>
...
</DataTemplate>
</TabControl.ItemTemplate>
<TabControl.ContentTemplate>
<DataTemplate>
...
</DataTemplate>
</TabControl.ContentTemplate>
</TabControl>

wrote Nov 19, 2010 at 3:40 PM

wrote Dec 17, 2010 at 5:17 AM

wrote Dec 21, 2010 at 8:14 AM

wrote Dec 30, 2010 at 12:10 PM

wrote Jan 21, 2011 at 2:54 PM

wrote Jan 25, 2011 at 1:03 PM

wrote Jan 31, 2011 at 6:44 PM

wrote Feb 4, 2011 at 1:19 AM

wrote Feb 4, 2011 at 8:08 AM

wrote Feb 25, 2011 at 8:39 PM

wrote Mar 13, 2011 at 2:41 PM

vorrtex wrote Mar 17, 2011 at 3:41 PM

I use my own extended tab control for the databinding functionality.
Here is example and code of the extended control, where I've answered another question:
http://stackoverflow.com/questions/4828661/silverlight-4-making-closeable-tabitems/4830314#4830314
It supports adding and removing items and markap is identical to wpf, except names for attributes (MyItemsSource instead of ItemsSource for example).

wrote Mar 27, 2011 at 1:07 PM

wrote Apr 5, 2011 at 3:46 AM

wrote Apr 7, 2011 at 6:55 AM

wrote May 29, 2011 at 5:24 PM

wrote May 31, 2011 at 9:57 AM

wrote Jun 8, 2011 at 7:36 AM

wrote Jun 8, 2011 at 7:58 PM

wrote Jun 8, 2011 at 10:20 PM

wrote Feb 22, 2013 at 1:52 AM

wrote May 16, 2013 at 12:35 PM