protected override void CreateChildItems(RadElement parent) { separatorElement = new SeparatorElement(); separatorElement.StretchHorizontally = true; separatorElement.StretchVertically = true; parent.Children.Add(separatorElement); }
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); } }
protected virtual void CreateVisualItem() { this.separatorElement = new SeparatorElement(); this.Children.Add((RadElement)this.separatorElement); }