2025-09-04 18:28:02 +08:00

44 lines
1.1 KiB
C#

using System.Text.RegularExpressions;
using System.Windows.Input;
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();
// }
//}
}
}