<Grid Grid.Row="1" Grid.Column="1" FocusManager.FocusedElement="{Binding ElementName=TB_UserName}">
...
<TextBox Name="TB_UserName" Grid.Column="1" Style="{StaticResource IconInputTextBox}"></TextBox>
...
</Grid>
C# TextBox默认焦点
最新推荐文章于 2024-07-13 19:28:07 发布