Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

wpf how to focus on element

<StackPanel Orientation="Vertical" FocusManager.FocusedElement="{Binding ElementName=TxtB}">
    <TextBox x:Name="TxtA" Text="A" />
    <TextBox x:Name="TxtB" Text="B" />
</StackPanel>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wpf #focus #element
ADD COMMENT
Topic
Name
3+9 =