【发布时间】:2017-11-18 15:31:03
【问题描述】:
我实际上正在尝试在 c# wpf 中制作 Jarvis AI 程序,但我在代码中遇到异常。实际上,问题是当我正在运行的应用程序上按下鼠标右键时,应用程序会卡住并崩溃,任何人都可以帮助我解决这个问题。
using System;
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;
namespace jarvis
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
{
this.DragMove();
}
}
}
【问题讨论】: