Hi,@Partha Mandayam . Welcome Microsoft Q&A.
If your field is assignment, you could refer to the code below.
MainWindow.xaml:
<Grid>
<TabControl >
<TabItem Header="Tab1">
<Grid Background="AliceBlue">
<Button x:Name="btn" Width="100" Height="50" Click="btn_Click" Content="tab1"/>
</Grid>
</TabItem>
<TabItem Header="Tab3">
<Grid Background="#FFE5E5E5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="67"/>
<ColumnDefinition Width="330*"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="tb1" Text="hello" Width="200" Background="AliceBlue" Height="50" />
<TextBox x:Name="tb2" Grid.Column="1" Text="hi" Width="200" Background="AliceBlue" Height="50"/>
</Grid>
</TabItem>
</TabControl>
</Grid>
MainWindow.xaml.cs:
private void btn_Click(object sender, RoutedEventArgs e)
{
tb2.Text = "ok";
}
----------------------------------------------------------------------------
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.