Продолжение рефакторинга (вынесение WPF в отдельный проект)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
namespace Pf2e.WPF.EntityViewer.Component;
|
||||
|
||||
/// <summary>
|
||||
/// Логика взаимодействия для DbEntityListControl.xaml
|
||||
/// </summary>
|
||||
internal partial class EntityListControl : System.Windows.Controls.UserControl
|
||||
{
|
||||
public EntityListControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void TextBox_PreviewTextInput(
|
||||
object sender,
|
||||
System.Windows.Input.TextCompositionEventArgs e
|
||||
)
|
||||
{
|
||||
e.Handled = !int.TryParse(e.Text, out int result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user