From c733950afffb3e463bf23f36f9e9f2bfe0d6e6e2 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 4 Nov 2022 10:09:33 +0100 Subject: [PATCH] Refactor gestures tab in IntegrationTestApp. --- samples/IntegrationTestApp/MainWindow.axaml | 13 ++++-- .../IntegrationTestApp/MainWindow.axaml.cs | 42 +++++++++++++++---- 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/samples/IntegrationTestApp/MainWindow.axaml b/samples/IntegrationTestApp/MainWindow.axaml index 2a0a758852..76ecfcc622 100644 --- a/samples/IntegrationTestApp/MainWindow.axaml +++ b/samples/IntegrationTestApp/MainWindow.axaml @@ -72,12 +72,17 @@ - + - + + + + diff --git a/samples/IntegrationTestApp/MainWindow.axaml.cs b/samples/IntegrationTestApp/MainWindow.axaml.cs index 791e221d50..e8fb455c35 100644 --- a/samples/IntegrationTestApp/MainWindow.axaml.cs +++ b/samples/IntegrationTestApp/MainWindow.axaml.cs @@ -18,18 +18,10 @@ namespace IntegrationTestApp { InitializeComponent(); InitializeViewMenu(); + InitializeGesturesTab(); this.AttachDevTools(); AddHandler(Button.ClickEvent, OnButtonClick); ListBoxItems = Enumerable.Range(0, 100).Select(x => "Item " + x).ToList(); - - var gestureBorder = this.GetControl("GestureBorder"); - var lastGesture = this.GetControl("LastGesture"); - var clearLastGesture = this.GetControl