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

28 lines
725 B
C#
Raw Normal View History

2024-03-30 07:00:02 +00:00
using System.Windows;
2023-12-20 12:51:58 +00:00
using System.Windows.Controls;
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
}