PointerPage.axaml 974 B

12345678910111213141516171819
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="IntegrationTestApp.Pages.PointerPage">
  7. <StackPanel>
  8. <!-- Trigger with PointerPressed rather using a Button so we have access to the pointer. -->
  9. <Border Name="PointerPageShowDialog"
  10. Background="{DynamicResource ButtonBackground}"
  11. HorizontalAlignment="Left"
  12. Padding="{DynamicResource ButtonPadding}"
  13. AutomationProperties.AccessibilityView="Control"
  14. PointerPressed="PointerPageShowDialog_PointerPressed">
  15. <TextBlock>Show Dialog</TextBlock>
  16. </Border>
  17. <TextBlock Name="PointerCaptureStatus"/>
  18. </StackPanel>
  19. </UserControl>