Hello, thanks for reporting this issue. It looks similar to a known problem. TemplateBinding doesn't work for collection types. Note this only affects TemplateBinding. In a normal binding it should work fine. The data source can be any kind of collections. So a workaround is:
<ItemsControl x:Name="ic" Background="Blue" Margin="0,0,0,0"/>
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
ItemsControl ic = this.GetTemplateChild("ic") as ItemsControl;
if (ic != null)
{
Binding b = new Binding("TestCollection");
b.Source = this;
ic.SetBinding(ItemsControl.ItemsSourceProperty, b);
}
}
shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.