Hi,
I tried to use a RadMasketTextInput instead of a standard TextBox, mainly because of the SelectionOnFocus/Selectall property.
Always wotks well, but the width of control doesn't use all the space left in the parent as a TextBox, in the same position, does.
I tried with stackpanel, dockpanel and Grid, this is the attempt with dockpanel:
<DockPanel Grid.Row="0" Grid.Column="0" Margin="12,0,0,0" HorizontalAlignment="Stretch">
<Label VerticalAlignment="Center"
Content="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.NameLabel}}" />
<t:RadMaskedTextInput
HorizontalAlignment="Stretch"
SelectionOnFocus="SelectAll"
Value="{Binding SorgenteName}"/>
</DockPanel>
And with textbox:
<DockPanel Grid.Row="0" Grid.Column="0" Margin="12,0,0,0" HorizontalAlignment="Stretch">
<Label VerticalAlignment="Center"
Content="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.NameLabel}}" />
<TextBox
HorizontalAlignment="Stretch"
Text="{Binding SorgenteName}"/>
</DockPanel>
With textbox I have the desired layout.
Thank you in advance