>What C# code would I use to set the focus to the named WPF TextBox below:
>
>I've tried txtPattern.Focus(), but it does nothing.
>
>
>
><TextBox Name="txtPatternName" Text="{Binding Path=PatternName, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Width="150" />
>
Hi,
Neil gave you a good link. But in the simple case the 'txtPattern.Focus()' should work (at least it does for me). Any sample repro code?
Regards,
Viv