I am having a strange problem in Windows phone. I am making a chat app and there's a Send Button near the message TextBox. When the user done typing he/she can hit send to send the text. However when Send Button is tapped the keyboard gets hidden and then the user has to hit Send again to send the message.
I am assuming this is because TextBox has the focus and it needs to send the focus to the button before button can work. Is there any way I can call the button click even in single tap instead of two taps?
Update:
Here's my XAML code:-
<Grid Grid.Row="2" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="MessageEditBox" PlaceholderText="Enter Message" Margin="10,10,0,10" InputScope="Chat"/>
<Button x:Name="SendButton" Grid.Column="1" Content="Send" Margin="10,0" Click="SendButton_Click"/>
</Grid>