XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEToolBox

【WPF】XFE工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
using System.Windows;
using System.Windows.Controls;
using XFEToolBox.Client.Views.Windows;

namespace XFEToolBox.Client.Views.Pages.Admin;

public partial class ServerManagementPage : Page
{
    public static ServerManagementPage Current { get; } = new();

    public ServerManagementPage() => InitializeComponent();

    private void ManagementCard_Click(object sender, RoutedEventArgs e)
    {
        if (sender is Button { Tag: string pageTag })
            MainWindow.Current?.ViewModel.NavigateToPageCommand.Execute(pageTag);
    }
}