Xamarin iOS Button Click on when keyboard open

[ad_1]

I’ve a primary grid with a textual content area and a button in it.

XAML:

 <Grid Margin="16"
      CornerRadius="12"
      Background="{StaticResource Color08Brush}">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>

    <TextBox Grid.Column="0"
             PlaceholderText="Write a message…"
             Margin="12,12,4,12"
             MaxHeight="92"
             TextWrapping="Wrap"
             Textual content="{Binding [Input], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
             Type="{StaticResource ChatTextBoxStyle}" />
    <Button Grid.Column="1"
            Command="{Binding [SendMessage]}"
            Type="{StaticResource EllipseButtonStyle}"
            Background="{StaticResource Color11Brush}"
            Width="44"
            Peak="44"
            Margin="0,0,12,0"
            IsTabStop="False">
        <u:PathControl Type="{StaticResource ForwardArrowPathStyle}"
                       Width="8" />
    </Button>
 </Grid>

Every part works in Android. Having points in iOS. When within the TextBox, the iOS keyboard opens as anticipated. You kind some textual content and hit the Button to ship the message. Nevertheless, this merely dismisses the iOS keyboard and would not hearth SendMessage

Tried utilizing ios:VisualElement.CanBecomeFirstResponder="True" however similar end result on button click on with keyboard open in iOS.

Thanks for any assist!

[ad_2]

Leave a Reply