Skip to content
Permalink
Browse files

[Skip CI] Autopaste function did not work when the focus was taken

away in some special cases - fix
Jumpin to Label TexBox after autopaste - fix
  • Loading branch information...
molnard committed Nov 18, 2018
1 parent 6b9fb0b commit 5b66a94da980cd4b9998d0238bea0aab855e3b92
@@ -116,6 +116,9 @@ protected override void OnAttached()
_disposables.Add(
AssociatedObject.GetObservable(TextBox.PointerEnterEvent).Subscribe(async pointerEnter =>
{
if (!AssociatedObject.IsFocused && MyTextBoxState == TextBoxState.NormalTextBoxOperation)
MyTextBoxState = TextBoxState.None;

if (MyTextBoxState == TextBoxState.NormalTextBoxOperation) return;
_addressToPaste = null;

@@ -31,7 +31,7 @@
</i:Interaction.Behaviors>
</controls:ExtendedTextBox>
<StackPanel Spacing="8">
<controls:ExtendedTextBox Text="{Binding Label}" Watermark="Label" UseFloatingWatermark="True" IsReadOnly="{Binding IsMax}" ToolTip.Tip="{Binding LabelToolTip}" CaretIndex="{Binding CaretIndex, Mode=TwoWay}">
<controls:ExtendedTextBox x:Name="LabelTextBox" Text="{Binding Label}" Watermark="Label" UseFloatingWatermark="True" IsReadOnly="{Binding IsMax}" ToolTip.Tip="{Binding LabelToolTip}" CaretIndex="{Binding CaretIndex, Mode=TwoWay}">
<i:Interaction.Behaviors>
<behaviors:SuggestionBehavior SuggestionItems="{Binding Suggestions}" />
<behaviors:CommandOnEnterBehavior Command="{Binding GenerateCommand}" />

0 comments on commit 5b66a94

Please sign in to comment.
You can’t perform that action at this time.