This question is locked. New answers and comments are not allowed.
I have a tab control that has its ItemsSource bound to an EntityCollection and the ContentTemplate set to a DataTemplate.
DataTemplate:
TabControl:
In the Loaded_Data event handler for the DomainDataSource, I need to set the Text in the "text1" TextBlock. How can I traverse from the TabControl object down to that control? I'm still really new to Silverlight and this has been giving me headaches for a couple of days. Any help?
DataTemplate:
<DataTemplate x:Key="ContentTemplate"> <Grid x:Name="TemplateGrd"> <StackPanel x:Name="panelSub" > <TextBlock Text="" Name="text1" /> <TextBlock Text="{Binding dgpGroupDesc}" Name="text2"></TextBlock> </StackPanel> </Grid></DataTemplate>TabControl:
<telerikNavigation:RadTabControl Height="660" Width="975" Name="tabsVMB" TabOrientation="Horizontal" TabStripPlacement="Right" ItemTemplate="{StaticResource TabItemTemplate}" ContentTemplate="{StaticResource ContentTemplate}" ItemsSource="{Binding ElementName=DomainDataSource, Path=Data}" />In the Loaded_Data event handler for the DomainDataSource, I need to set the Text in the "text1" TextBlock. How can I traverse from the TabControl object down to that control? I'm still really new to Silverlight and this has been giving me headaches for a couple of days. Any help?