mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
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:
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 />
|
||||
|
||||
+6
-4
@@ -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>
|
||||
Reference in new issue
Block a user