Exemple #1
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.separatorElement       = new WaitingBarSeparatorElement();
     this.SeparatorElement.Class = "WaitingBarSeparator";
     this.Children.Add((RadElement)this.SeparatorElement);
     this.textElement        = new WaitingBarTextElement();
     this.textElement.ZIndex = 1;
     this.Children.Add((RadElement)this.TextElement);
     this.indicators = new WaitingBarIndicatorCollection();
     this.CreateIndicators();
     foreach (RadElement waitingIndicator in (Collection <BaseWaitingBarIndicatorElement>) this.WaitingIndicators)
     {
         this.Children.Add(waitingIndicator);
     }
 }
Exemple #2
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            separatorElement = new WaitingBarSeparatorElement();
            textElement      = new WaitingBarTextElement();
            indicators       = new WaitingIndicatorCollection();

            Indicators[0].SetDefaultValueOverride(RadElement.VisibilityProperty, ElementVisibility.Visible);
            Indicators[1].SetDefaultValueOverride(RadElement.VisibilityProperty, ElementVisibility.Collapsed);
            separatorElement.Class = "WaitingBarSeparator";

            this.Children.Add(separatorElement);
            this.Children.Add(textElement);
            this.Children.Add(Indicators[0]);
            this.Children.Add(Indicators[1]);
        }