Profile editor - Copy child elements when copying folders

UI - Save window position/size
Numberic node - Correctly show 0 instead of an empty input when reloading after a save
This commit is contained in:
Robert committed 2022-09-09 20:39:55 +02:00
1 parent f733ce02de
commit 65a2aa70e2
8 files changed
+206 -13

No files matched your search

@@ -15,7 +15,8 @@ public class NumericConverter : IValueConverter
if (value is not Numeric numeric)
return value;
return Numeric.IsTypeCompatible(targetType) ? numeric.ToType(targetType, NumberFormatInfo.InvariantInfo) : value;
object result = Numeric.IsTypeCompatible(targetType) ? numeric.ToType(targetType, NumberFormatInfo.InvariantInfo) : value;
return result;
}
/// <inheritdoc />
@@ -12,9 +12,11 @@
<UserControl.Resources>
<converters:NumericConverter x:Key="NumericConverter" />
</UserControl.Resources>
<controls:NumberBox VerticalAlignment="Center" MinWidth="75" SimpleNumberFormat="F3" Classes="condensed">
<Interaction.Behaviors>
<behaviors:LostFocusNumberBoxBindingBehavior Value="{CompiledBinding CurrentValue, Converter={StaticResource NumericConverter}}"/>
</Interaction.Behaviors>
<controls:NumberBox VerticalAlignment="Center"
MinWidth="75"
SimpleNumberFormat="F3"
Classes="condensed"
AcceptsExpression="True"
Value="{CompiledBinding CurrentValue, Converter={StaticResource NumericConverter}}">
</controls:NumberBox>
</UserControl>