diff --git a/OpenUtau/Controls/PropertyEditors/FloatEditor.cs b/OpenUtau/Controls/PropertyEditors/FloatEditor.cs index 9c31f3ca7..22306110e 100644 --- a/OpenUtau/Controls/PropertyEditors/FloatEditor.cs +++ b/OpenUtau/Controls/PropertyEditors/FloatEditor.cs @@ -6,7 +6,7 @@ using Avalonia.Interactivity; using ReactiveUI; -namespace OpenUtau.Controls.PropertyEditors{ +namespace OpenUtau.Controls{ public class FloatEditor : TextBox { protected override Type StyleKeyOverride => typeof(TextBox); diff --git a/OpenUtau/Controls/PropertyEditors/IntEditor.cs b/OpenUtau/Controls/PropertyEditors/IntEditor.cs index 353898904..5cffa2c66 100644 --- a/OpenUtau/Controls/PropertyEditors/IntEditor.cs +++ b/OpenUtau/Controls/PropertyEditors/IntEditor.cs @@ -6,7 +6,7 @@ using Avalonia.Interactivity; using ReactiveUI; -namespace OpenUtau.Controls.PropertyEditors{ +namespace OpenUtau.Controls{ public class IntEditor : TextBox { protected override Type StyleKeyOverride => typeof(TextBox); @@ -53,7 +53,7 @@ protected void OnTextChanged(string? newText) protected override void OnLostFocus(RoutedEventArgs e) { base.OnLostFocus(e); - if (!float.TryParse(Text, out float newValue)) + if (!int.TryParse(Text, out int newValue)) { Text = Value.ToString(); } diff --git a/OpenUtau/Views/ExpressionsDialog.axaml b/OpenUtau/Views/ExpressionsDialog.axaml index 8160d3312..a33dca6ab 100644 --- a/OpenUtau/Views/ExpressionsDialog.axaml +++ b/OpenUtau/Views/ExpressionsDialog.axaml @@ -3,7 +3,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="using:OpenUtau.App.ViewModels" - xmlns:pe="using:OpenUtau.Controls.PropertyEditors" + xmlns:c="using:OpenUtau.Controls" mc:Ignorable="d" x:Class="OpenUtau.App.Views.ExpressionsDialog" Icon="/Assets/open-utau.ico" @@ -67,15 +67,15 @@ @@ -69,51 +69,51 @@ @@ -123,7 +123,7 @@