using Prism.Dialogs; using SWS.CAD.Models; using SWS.CAD.ViewModels; using System; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Controls; using System.Windows.Forms; using System.Windows.Input; using System.Windows.Media; using UserControl = System.Windows.Controls.UserControl; namespace SWS.CAD.Views { /// /// Login.xaml 的交互逻辑 /// public partial class NewDrawing : UserControl { public NewDrawing() { InitializeComponent(); } private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e) { e.Handled = new Regex("[^0-9]+").IsMatch(e.Text); } //private void combo_temp_DropDownOpened(object sender, EventArgs e) //{ // TreePopup.IsOpen = true; //} //private void combo_temp_DropDownClosed(object sender, EventArgs e) //{ // TreePopup.IsOpen = false; //} //private void Border_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) //{ // if (e.LeftButton == MouseButtonState.Pressed) // { // this.DragMove(); // } //} } }