GesturesPage.axaml 1.3 KB

1234567891011121314151617181920212223242526272829
  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.GesturesPage">
  7. <DockPanel>
  8. <DockPanel DockPanel.Dock="Top">
  9. <Button Name="ResetGestures"
  10. DockPanel.Dock="Right"
  11. Click="ResetGestures_Click">
  12. Reset
  13. </Button>
  14. <TextBlock Name="LastGesture" />
  15. </DockPanel>
  16. <Panel>
  17. <Border Name="GestureBorder" Background="Blue"
  18. AutomationProperties.AccessibilityView="Content"
  19. AutomationProperties.ControlTypeOverride="Image"
  20. Tapped="GestureBorder_Tapped"
  21. DoubleTapped="GestureBorder_DoubleTapped"
  22. Gestures.RightTapped="GestureBorder_RightTapped"/>
  23. <Border Name="GestureBorder2" Background="Green" IsVisible="False"
  24. AutomationProperties.AccessibilityView="Content"
  25. AutomationProperties.ControlTypeOverride="Image"
  26. DoubleTapped="GestureBorder2_DoubleTapped"/>
  27. </Panel>
  28. </DockPanel>
  29. </UserControl>