Пʼятниця, 7 листопада 2008 р.

How to set initial focus to specific WPF control in XAML

Setting initial focused control in WPF is easy. Just use the FocusManager.FocusedElement attached property:

<Window FocusManager.FocusedElement="{Binding ElementName=MyEdit}" >
<TextBox Name="MyEdit" />
</Window>

0 коментарі: