TextBoxWithButton control correctly updates field value

Create Group now allows inline input of the group name
This commit is contained in:
Geoffroy BONNEVILLE
2020-05-05 15:27:34 +02:00
parent 2f30389f6c
commit 5ce0262318
8 changed files with 91 additions and 27 deletions

View File

@@ -291,7 +291,7 @@
TextWrapping="NoWrap"
VerticalAlignment="Stretch"
Margin="0"
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Path=Text}" />
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Path=Text, UpdateSourceTrigger=PropertyChanged}" />
<Button x:Name="ActionButton"
AutomationProperties.AccessibilityView="Raw"
Background="Transparent"
@@ -301,7 +301,8 @@
Style="{StaticResource ActionButtonStyle}"
Content="{TemplateBinding ButtonSymbol}"
IsEnabled="{TemplateBinding IsButtonEnabled}"
Command="{TemplateBinding ButtonCommand}">
Command="{TemplateBinding ButtonCommand}"
CommandParameter="{TemplateBinding ButtonCommandParameter}">
<ToolTipService.ToolTip>
<ToolTip Content="{TemplateBinding ButtonTooltip}" />
</ToolTipService.ToolTip>