protected override void RegisterStyles() { StyleMapper .If(() => StyleProvider.ModalShow(), () => IsOpen); base.RegisterStyles(); }
protected override void RegisterStyles() { StyleMapper .If(() => StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0), () => MaxHeight != null); base.RegisterStyles(); }
protected override void RegisterStyles() { StyleMapper .If(() => StyleProvider.ProgressBarValue(Value ?? 0), () => Value != null); base.RegisterStyles(); }
protected virtual void BuildStyles(StyleBuilder builder) { if (Style != null) { builder.Append(Style); } builder.Append(StyleProvider.Visibility(Visibility)); }
protected override void BuildStyles(StyleBuilder builder) { if (MaxHeight != null) { builder.Append(StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0)); } base.BuildStyles(builder); }
/// <summary> /// Builds the styles for a progress bar. /// </summary> /// <param name="builder">Styles builder used to append the styles.</param> private void BuildProgressBarStyles(StyleBuilder builder) { if (Percentage != null) { builder.Append(StyleProvider.ProgressBarValue(Percentage ?? 0)); } builder.Append(StyleProvider.ProgressBarSize(ThemeSize)); }
protected override void BuildStyles(StyleBuilder builder) { if (Value != null) { builder.Append(StyleProvider.ProgressBarValue(Value ?? 0)); } base.BuildStyles(builder); }
/// <inheritdoc/> protected override void BuildStyles(StyleBuilder builder) { if (Percentage != null) { builder.Append(StyleProvider.ProgressBarValue(Percentage ?? 0)); } builder.Append(StyleProvider.ProgressBarSize(ParentProgress?.ThemeSize ?? Size.Default)); base.BuildStyles(builder); }
/// <inheritdoc/> protected override void BuildStyles(StyleBuilder builder) { if (Value != null) { builder.Append(StyleProvider.ProgressBarValue(Value ?? 0)); } builder.Append(StyleProvider.ProgressBarSize(ParentProgress?.Size ?? Size.None)); base.BuildStyles(builder); }
protected override void BuildStyles(StyleBuilder builder) { builder.Append(StyleProvider.ModalShow(), Visible); base.BuildStyles(builder); }
protected override void BuildStyles(StyleBuilder builder) { builder.Append(StyleProvider.RowGutter(Gutter), Gutter != default); base.BuildStyles(builder); }
protected virtual void RegisterStyles() { StyleMapper .If(() => Style, () => Style != null) .Add(() => StyleProvider.Visibility(Visibility)); }