|
@@ -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<Border>("GestureBorder");
|
|
|
- var lastGesture = this.GetControl<TextBlock>("LastGesture");
|
|
|
- var clearLastGesture = this.GetControl<Button>("ClearLastGesture");
|
|
|
- gestureBorder.Tapped += (s, e) => lastGesture.Text = "Tapped";
|
|
|
- gestureBorder.DoubleTapped += (s, e) => lastGesture.Text = "DoubleTapped";
|
|
|
- Gestures.AddRightTappedHandler(gestureBorder, (s, e) => lastGesture.Text = "RightTapped");
|
|
|
- clearLastGesture.Click += (s, e) => lastGesture.Text = string.Empty;
|
|
|
-
|
|
|
DataContext = this;
|
|
|
}
|
|
|
|
|
@@ -130,6 +122,38 @@ namespace IntegrationTestApp
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void InitializeGesturesTab()
|
|
|
+ {
|
|
|
+ var gestureBorder = this.GetControl<Border>("GestureBorder");
|
|
|
+ var gestureBorder2 = this.GetControl<Border>("GestureBorder2");
|
|
|
+ var lastGesture = this.GetControl<TextBlock>("LastGesture");
|
|
|
+ var resetGestures = this.GetControl<Button>("ResetGestures");
|
|
|
+ gestureBorder.Tapped += (s, e) => lastGesture.Text = "Tapped";
|
|
|
+
|
|
|
+ gestureBorder.DoubleTapped += (s, e) =>
|
|
|
+ {
|
|
|
+ lastGesture.Text = "DoubleTapped";
|
|
|
+
|
|
|
+ // Testing #8733
|
|
|
+ gestureBorder.IsVisible = false;
|
|
|
+ gestureBorder2.IsVisible = true;
|
|
|
+ };
|
|
|
+
|
|
|
+ gestureBorder2.DoubleTapped += (s, e) =>
|
|
|
+ {
|
|
|
+ lastGesture.Text = "DoubleTapped2";
|
|
|
+ };
|
|
|
+
|
|
|
+ Gestures.AddRightTappedHandler(gestureBorder, (s, e) => lastGesture.Text = "RightTapped");
|
|
|
+
|
|
|
+ resetGestures.Click += (s, e) =>
|
|
|
+ {
|
|
|
+ lastGesture.Text = string.Empty;
|
|
|
+ gestureBorder.IsVisible = true;
|
|
|
+ gestureBorder2.IsVisible = false;
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
private void MenuClicked(object? sender, RoutedEventArgs e)
|
|
|
{
|
|
|
var clickedMenuItemTextBlock = this.Get<TextBlock>("ClickedMenuItem");
|