using GalaSoft.MvvmLight.Command;
using GeekDesk.Control.UserControls;
using GeekDesk.ViewModel;
using HandyControl.Controls;
using HandyControl.Data;
using System;
using System.Windows;
using System.Windows.Input;
namespace GeekDesk.Control
{
///
/// ConfigDialog.xaml 的交互逻辑
///
public partial class ConfigWindow
{
public ConfigWindow(AppConfig appConfig)
{
InitializeComponent();
this.DataContext = appConfig;
RightCard.Content = new SettingControl();
this.Topmost = true;
}
///
/// 移动窗口
///
///
///
private void DragMove(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
DragMove();
}
}
///
/// 点击关闭按钮
///
///
///
private void Close_Button_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
}
}