private void LoadPointer_Released(object sender, PointerRoutedEventArgs e) { IsClicking = false; FilesButton button = sender as FilesButton; if (button != null && BeingClicked == button) { button.Function(); } }
private void LoadButton_Pressed(object sender, PointerRoutedEventArgs e) { IsClicking = true; FilesButton button = sender as FilesButton; if (button != null && button != BeingClicked) { BeingClicked = button; button.Clicked(true); } }