コード例 #1
0
 protected override void CreateChildItems(RadElement parent)
 {
     separatorElement = new SeparatorElement();
     separatorElement.StretchHorizontally = true;
     separatorElement.StretchVertically   = true;
     parent.Children.Add(separatorElement);
 }
コード例 #2
0
 protected void SetElementsVisibility(WaitingBarStyles style)
 {
     if (style == WaitingBarStyles.Indeterminate)
     {
         SetIndicatorsVisibility(ElementVisibility.Visible);
         SeparatorElement.SetDefaultValueOverride(RadElement.VisibilityProperty, ElementVisibility.Collapsed);
     }
     if (style == WaitingBarStyles.Throbber)
     {
         SetIndicatorsVisibility(ElementVisibility.Collapsed);
         SeparatorElement.SetDefaultValueOverride(RadElement.VisibilityProperty, ElementVisibility.Collapsed);
     }
     if (style == WaitingBarStyles.Dash)
     {
         SetIndicatorsVisibility(ElementVisibility.Collapsed);
         SeparatorElement.SetDefaultValueOverride(RadElement.VisibilityProperty, ElementVisibility.Visible);
     }
 }
コード例 #3
0
 protected virtual void CreateVisualItem()
 {
     this.separatorElement = new SeparatorElement();
     this.Children.Add((RadElement)this.separatorElement);
 }