Exemplo n.º 1
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ModalShow(), () => IsOpen);

            base.RegisterStyles();
        }
Exemplo n.º 2
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0), () => MaxHeight != null);

            base.RegisterStyles();
        }
Exemplo n.º 3
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ProgressBarValue(Value ?? 0), () => Value != null);

            base.RegisterStyles();
        }
Exemplo n.º 4
0
        protected virtual void BuildStyles(StyleBuilder builder)
        {
            if (Style != null)
            {
                builder.Append(Style);
            }

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

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

            base.BuildStyles(builder);
        }
Exemplo n.º 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);
        }
Exemplo n.º 9
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);
        }
Exemplo n.º 10
0
        protected override void BuildStyles(StyleBuilder builder)
        {
            builder.Append(StyleProvider.ModalShow(), Visible);

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

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