Beispiel #1
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ModalShow(), () => IsOpen);

            base.RegisterStyles();
        }
Beispiel #2
0
        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();
        }
Beispiel #4
0
        protected virtual void BuildStyles(StyleBuilder builder)
        {
            if (Style != null)
            {
                builder.Append(Style);
            }

            builder.Append(StyleProvider.Visibility(Visibility));
        }
Beispiel #5
0
        protected override void BuildStyles(StyleBuilder builder)
        {
            if (MaxHeight != null)
            {
                builder.Append(StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0));
            }

            base.BuildStyles(builder);
        }
Beispiel #6
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));
        }
        protected override void BuildStyles(StyleBuilder builder)
        {
            if (Value != null)
            {
                builder.Append(StyleProvider.ProgressBarValue(Value ?? 0));
            }

            base.BuildStyles(builder);
        }
Beispiel #8
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);
        }
        /// <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);
        }
Beispiel #10
0
        protected override void BuildStyles(StyleBuilder builder)
        {
            builder.Append(StyleProvider.ModalShow(), Visible);

            base.BuildStyles(builder);
        }
Beispiel #11
0
        protected override void BuildStyles(StyleBuilder builder)
        {
            builder.Append(StyleProvider.RowGutter(Gutter), Gutter != default);

            base.BuildStyles(builder);
        }
Beispiel #12
0
 protected virtual void RegisterStyles()
 {
     StyleMapper
     .If(() => Style, () => Style != null)
     .Add(() => StyleProvider.Visibility(Visibility));
 }