Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /// <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);
        }