protected override Size MeasureOverride(Size availableSize) { double width = 100.0; if (!DesignerProperties.IsInDesignTool) { width = this.Width != double.NaN ? this.Width : availableSize.Width; } this.TemplateSettings = new ProgressRing.TemplateSettingValues(width); return(base.MeasureOverride(availableSize)); }
public ProgressRing() { this.InitializeComponent(); this.TemplateSettings = new ProgressRing.TemplateSettingValues(60.0); }