fix textbox keyboard global handling

add CameraConfig to prod json
add launch and tasks jsons to vscode folder
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-10-01 20:04:45 +03:00
parent 99b9058187
commit 5e226d422d
7 changed files with 121 additions and 10 deletions
+5 -5
View File
@@ -49,11 +49,11 @@ public partial class NumericUpDown : UserControl
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
if (d is NumericUpDown control)
{
control.NudTextBox.Text = ((decimal)e.NewValue).ToString(CultureInfo.InvariantCulture);
control.NudTextBox.SelectionStart = control.NudTextBox.Text.Length;
}
if (d is not NumericUpDown control)
return;
control.NudTextBox.Text = ((decimal)e.NewValue).ToString(CultureInfo.InvariantCulture);
control.NudTextBox.SelectionStart = control.NudTextBox.Text.Length;
}
private void NudButtonUp_OnClick(object sender, RoutedEventArgs e)