I have defined two datatemplate:
and
When enter in editing mode with keyboard, in the first Datatemplate takes the focus on the TextBox, in the second Datatemplate does not take the focus on the TextBox.
The reason may be the grid?
Any solutions?
<
DataTemplate
x:Key
=
"doubleTemplate"
>
<
local:DoubleTextBox
propertyGrid:AutoBindBehavior.UpdateBindingOnElementLoaded
=
"Text"
/>
</
DataTemplate
>
and
<
DataTemplate
x:Key
=
"usrDoubleTemplate"
>
<
Grid
Name
=
"gridRoot"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
local:DoubleTextBox
propertyGrid:AutoBindBehavior.UpdateBindingOnElementLoaded
=
"Text"
/>
<
Label
Loaded
=
"LabelUnit_Loaded"
Grid.Column
=
"1"
Margin
=
"2,0"
ContentStringFormat
=
"[{0}]"
propertyGrid:AutoBindBehavior.UpdateBindingOnElementLoaded
=
"DataContext"
/>
</
Grid
>
</
DataTemplate
>
When enter in editing mode with keyboard, in the first Datatemplate takes the focus on the TextBox, in the second Datatemplate does not take the focus on the TextBox.
The reason may be the grid?
Any solutions?