diff --git a/Arma.Studio.Data/ArmA.Studio.Data.csproj b/Arma.Studio.Data/ArmA.Studio.Data.csproj
index c48e1ec..bc05829 100644
--- a/Arma.Studio.Data/ArmA.Studio.Data.csproj
+++ b/Arma.Studio.Data/ArmA.Studio.Data.csproj
@@ -178,6 +178,7 @@
+
diff --git a/Arma.Studio.Data/UI/PropertyAttribute.cs b/Arma.Studio.Data/UI/PropertyAttribute.cs
index 8d39834..527836e 100644
--- a/Arma.Studio.Data/UI/PropertyAttribute.cs
+++ b/Arma.Studio.Data/UI/PropertyAttribute.cs
@@ -32,6 +32,22 @@ public class PropertyAttribute : Attribute
///
public object Default { get; set; }
+ ///
+ /// UI-Configuration.
+ /// The Minimum value the property is supposed to have.
+ ///
+ public double MinValue { get; set; }
+ ///
+ /// UI-Configuration.
+ /// The Maximum value the property is supposed to have.
+ ///
+ public double MaxValue { get; set; }
+ ///
+ /// UI-Configuration.
+ /// Stepsize for numeric up-down.
+ ///
+ public double Stepsize { get; set; }
+
public PropertyAttribute(string title)
{
this.Title = title;
@@ -39,6 +55,9 @@ public PropertyAttribute(string title)
this.Description = string.Empty;
this.Group = null;
this.Default = null;
+ this.MinValue = double.MinValue;
+ this.MaxValue = double.MaxValue;
+ this.Stepsize = 1;
}
}
}
diff --git a/Arma.Studio.PropertiesWindow/PropertyContainers/PropertyContainerBase.cs b/Arma.Studio.PropertiesWindow/PropertyContainers/PropertyContainerBase.cs
index 446aa25..3154bff 100644
--- a/Arma.Studio.PropertiesWindow/PropertyContainers/PropertyContainerBase.cs
+++ b/Arma.Studio.PropertiesWindow/PropertyContainers/PropertyContainerBase.cs
@@ -26,6 +26,22 @@ public object Value
}
}
+ ///
+ /// UI-Configuration.
+ /// The Minimum value the property is supposed to have.
+ ///
+ public double MinValue { get; set; }
+ ///
+ /// UI-Configuration.
+ /// The Maximum value the property is supposed to have.
+ ///
+ public double MaxValue { get; set; }
+ ///
+ /// UI-Configuration.
+ /// Stepsize for numeric up-down.
+ ///
+ public double Stepsize { get; set; }
+
public string Title { get; }
public string ToolTip { get; }
public PropertyContainerBase(string title, string tooltip, object data, string propertyName, Func