diff --git a/Perspex.Controls/ProgressBar.cs b/Perspex.Controls/ProgressBar.cs index 232039b802..2afbd3bc87 100644 --- a/Perspex.Controls/ProgressBar.cs +++ b/Perspex.Controls/ProgressBar.cs @@ -8,6 +8,7 @@ namespace Perspex.Controls { using Perspex.Controls.Primitives; using Perspex.Controls.Templates; + using System; /// /// A control used to indicate the progress of an operation. @@ -21,7 +22,7 @@ namespace Perspex.Controls var b = this.Bounds; var indicator = this.GetTemplateChild("PART_Indicator"); - indicator.Width = finalSize.Width * (this.Value / 100); + indicator.Width = Math.Max(this.Minimum, finalSize.Width * (this.Value / this.Maximum)); return size; }