Super simple example below. On any browser but Safari works as expected. On Safari only the PointerPressed event fires, not the Tapped event.
Code: Select all
<Page
x:Class="AppleTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AppleTest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel>
<TextBlock Text="Target Block" FontSize="22" Background="LightBlue" Tapped="TextBlock_Tapped" PointerPressed="TextBlock_PointerPressed" />
<TextBlock x:Name="textBlock1" Text="Not Tapped" />
<TextBlock x:Name="textBlock2" Text="Not Pressed" />
</StackPanel>
</Page>
Code: Select all
namespace AppleTest
{
public partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
// Enter construction logic here...
}
private void TextBlock_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
{
textBlock1.Text = "Tapped !!";
}
private void TextBlock_PointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
textBlock2.Text = "Pressed !!";
}
}
}