Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public ProgressRing()
 {
     this.InitializeComponent();
     this.TemplateSettings = new ProgressRing.TemplateSettingValues(60.0);
 }