VPet/VPet.Solution/Views/SettingEditor/GraphicsSettingPage.xaml.cs

41 lines
1.0 KiB
C#
Raw Normal View History

2024-03-07 10:41:18 +00:00
using System;
2023-12-20 12:51:58 +00:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
2024-03-07 10:41:18 +00:00
using HKW.HKWUtils;
2024-01-07 14:57:27 +00:00
using VPet.Solution.ViewModels.SettingEditor;
2023-12-20 12:51:58 +00:00
2024-01-07 14:57:27 +00:00
namespace VPet.Solution.Views.SettingEditor;
2023-12-23 14:44:10 +00:00
2023-12-20 12:51:58 +00:00
/// <summary>
/// GraphicsSettingsPage.xaml 的交互逻辑
/// </summary>
2023-12-30 14:54:49 +00:00
public partial class GraphicsSettingPage : Page
2023-12-20 12:51:58 +00:00
{
2023-12-30 14:54:49 +00:00
public GraphicsSettingPageVM ViewModel => (GraphicsSettingPageVM)DataContext;
2023-12-23 14:44:10 +00:00
2023-12-30 14:54:49 +00:00
public GraphicsSettingPage()
2023-12-20 12:51:58 +00:00
{
InitializeComponent();
2023-12-30 14:54:49 +00:00
this.SetViewModel<GraphicsSettingPageVM>();
2023-12-20 12:51:58 +00:00
}
2024-01-12 13:34:53 +00:00
2024-03-07 10:41:18 +00:00
private void Button_StartPoint_Click(object? sender, RoutedEventArgs e)
2024-01-12 13:34:53 +00:00
{
ViewModel.GraphicsSetting.StartRecordPoint = new(
SettingWindow.Instance.Left,
SettingWindow.Instance.Top
);
}
2023-12-20 12:51:58 +00:00
}