Removal of Bindings
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
using Wino.Core.ViewModels.Data;
|
||||
using Wino.Mail.WinUI.Views.Abstract;
|
||||
|
||||
namespace Wino.Views.Settings;
|
||||
@@ -8,4 +10,20 @@ public sealed partial class KeyboardShortcutsPage : KeyboardShortcutsPageAbstrac
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
private void EditShortcut_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
|
||||
{
|
||||
if (sender is Button button && button.CommandParameter is KeyboardShortcutViewModel shortcut)
|
||||
{
|
||||
ViewModel.StartEditingShortcutCommand.Execute(shortcut);
|
||||
}
|
||||
}
|
||||
|
||||
private void DeleteShortcut_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
|
||||
{
|
||||
if (sender is Button button && button.CommandParameter is KeyboardShortcutViewModel shortcut)
|
||||
{
|
||||
ViewModel.DeleteShortcutCommand.Execute(shortcut);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user