<ig:XamBusyIndicator IsBusy="True" FocusTarget="{Binding ElementName=TxtBox_Input}">
<TextBox Name="TxtBox_Input" />
</ig:XamBusyIndicator>
This topic explains how to configure explicitly which UIElement
receives the focus when the xamBusyIndicator™ is no longer active.
The following topics are prerequisites to understanding this topic:
Use the XamBusyIndicator FocusTarget property to set explicitly which UIElement
receives the focus when the xamBusyIndicator control is no longer active.
By default, the FocusTarget
property initial value is null
.
The following table maps the desired behavior to the property settings that manage it.
Following is the code that implements this example.
In XAML:
<ig:XamBusyIndicator IsBusy="True" FocusTarget="{Binding ElementName=TxtBox_Input}">
<TextBox Name="TxtBox_Input" />
</ig:XamBusyIndicator>
The following topics provide additional information related to this topic.