// -----------------------------------------------------------------------
//
// Copyright 2015 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex.Controls
{
using Perspex.Controls.Primitives;
using Perspex.Controls.Templates;
///
/// A control used to indicate the progress of an operation.
///
public class ProgressBar : RangeBase
{
///
protected override Size ArrangeOverride(Size finalSize)
{
var size = base.ArrangeOverride(finalSize);
var b = this.Bounds;
var indicator = this.GetTemplateChild("PART_Indicator");
indicator.Width = finalSize.Width * (this.Value / 100);
return size;
}
}
}