Code: Select all
<Page
x:Class="Application2.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Application2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Canvas>
<TextBlock Text="Move the pointer over this text and then move it out." x:Name="TextBlock1" Canvas.Left="20" Canvas.Top="30" PointerExited="TextBlock1_PointerExited"/>
</Canvas>
</Page>
Code: Select all
private void TextBlock1_PointerExited(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
MessageBox.Show("test");
}
Users browsing this forum: No registered users and 83 guests