private void _newHeightBox_OnValueChanged(NumberBox sender, NumberBoxValueChangedEventArgs args) { _newHeightBox.Value = GeneralUtils.ClampNaN(args.OldValue, args.NewValue); HandleResolutionValueChanged(); }