Hi,
I have a TabControl
<TabControl
Name="myTabControl"
IsSynchronizedWithCurrentItem="True"
ItemsSource="{Binding}">
<TabControl.ItemTemplate>
<DataTemplate>
<DockPanel Width="120">
<Button Name="CloseScreen"/>
<ContentPresenter Content="{Binding Path=DisplayName}"/>
</DockPanel>
</DataTemplate>
</TabControl.ItemTemplate>
</TabControl>
I want to find the button which is located in the ItemTemplate from code.
Thank you.