I have the following control defined in a simple Grid control:
Note that I have specified a TabIndex of 1. However when I tab through the UIElemets in the Window the RadNumericUpDown is always last. I have discovered that the template TextBox has a TabIndex of 2147483647 causing this behavior. As a work around I do this:
in the Loaded event. The result is as if the TabIndex was propagated to the templated TextBox.
<
telerik:RadNumericUpDown
x:Name
=
"TotalTimeSpent"
Grid.Column
=
"1"
Grid.Row
=
"1"
Focusable
=
"True"
LargeChange
=
"1.0"
SmallChange
=
"0.1"
Value
=
"0.1"
Maximum
=
"24.0"
Minimum
=
"0.0"
TabIndex
=
"1"
UpdateValueEvent
=
"PropertyChanged"
ValueFormat
=
"Numeric"
/>
Note that I have specified a TabIndex of 1. However when I tab through the UIElemets in the Window the RadNumericUpDown is always last. I have discovered that the template TextBox has a TabIndex of 2147483647 causing this behavior. As a work around I do this:
TextBox totalTimeSpent = TotallTimeSpent.FindChildByType<TextBox>()
as
TextBox;
if
(totalTimeSpent !=
null
)
{
totalTimeSpent .TabIndex = TotalTimeSpent .TabIndex;
}
in the Loaded event. The result is as if the TabIndex was propagated to the templated TextBox.