2025-08-15 16:34:31 +08:00

52 lines
1.3 KiB
C#

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
{
/// <summary>
/// Login.xaml 的交互逻辑
/// </summary>
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();
// }
//}
}
}