Exemplo n.º 1
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (BackgroundImageSource != null)
            {
                builder.AddAttribute(nameof(BackgroundImageSource), AttributeHelper.ObjectToDelegate(BackgroundImageSource));
            }
            if (IconImageSource != null)
            {
                builder.AddAttribute(nameof(IconImageSource), AttributeHelper.ObjectToDelegate(IconImageSource));
            }
            if (IsBusy != null)
            {
                builder.AddAttribute(nameof(IsBusy), IsBusy.Value);
            }
            if (Padding != null)
            {
                builder.AddAttribute(nameof(Padding), AttributeHelper.ThicknessToString(Padding.Value));
            }
            if (Title != null)
            {
                builder.AddAttribute(nameof(Title), Title);
            }

            RenderAdditionalAttributes(builder);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (AutoSize != null)
            {
                builder.AddAttribute(nameof(AutoSize), (int)AutoSize.Value);
            }
            if (FontAttributes != null)
            {
                builder.AddAttribute(nameof(FontAttributes), (int)FontAttributes.Value);
            }
            if (FontFamily != null)
            {
                builder.AddAttribute(nameof(FontFamily), FontFamily);
            }
            if (FontSize != null)
            {
                builder.AddAttribute(nameof(FontSize), AttributeHelper.DoubleToString(FontSize.Value));
            }
            if (IsTextPredictionEnabled != null)
            {
                builder.AddAttribute(nameof(IsTextPredictionEnabled), IsTextPredictionEnabled.Value);
            }

            RenderAdditionalAttributes(builder);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Increment != null)
            {
                builder.AddAttribute(nameof(Increment), AttributeHelper.DoubleToString(Increment.Value));
            }
            if (Maximum != null)
            {
                builder.AddAttribute(nameof(Maximum), AttributeHelper.DoubleToString(Maximum.Value));
            }
            if (Minimum != null)
            {
                builder.AddAttribute(nameof(Minimum), AttributeHelper.DoubleToString(Minimum.Value));
            }
            if (StepperPosition != null)
            {
                builder.AddAttribute(nameof(StepperPosition), StepperPosition.Value);
            }
            if (Value != null)
            {
                builder.AddAttribute(nameof(Value), AttributeHelper.DoubleToString(Value.Value));
            }

            RenderAdditionalAttributes(builder);
        }
Exemplo n.º 4
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (IsToggled != null)
            {
                builder.AddAttribute(nameof(IsToggled), IsToggled.Value);
            }

            builder.AddAttribute("onistoggledchanged", EventCallback.Factory.Create <ChangeEventArgs>(this, HandleIsToggledChanged));
        }
Exemplo n.º 5
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (NumberOfTapsRequired != null)
            {
                builder.AddAttribute(nameof(NumberOfTapsRequired), NumberOfTapsRequired.Value);
            }

            builder.AddAttribute("ontapped", OnTapped);
        }
Exemplo n.º 6
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Text != null)
            {
                builder.AddAttribute(nameof(Text), Text);
            }

            builder.AddAttribute("onclick", OnClick);
        }
Exemplo n.º 7
0
 partial void RenderAdditionalAttributes(AttributesBuilder builder)
 {
     if (ColumnDefinitions != null)
     {
         builder.AddAttribute(nameof(ColumnDefinitions), ColumnDefinitions);
     }
     if (RowDefinitions != null)
     {
         builder.AddAttribute(nameof(RowDefinitions), RowDefinitions);
     }
 }
Exemplo n.º 8
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Orientation != null)
            {
                builder.AddAttribute(nameof(Orientation), (int)Orientation.Value);
            }
            if (Spacing != null)
            {
                builder.AddAttribute(nameof(Spacing), AttributeHelper.DoubleToString(Spacing.Value));
            }
        }
Exemplo n.º 9
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (IsRunning != null)
            {
                builder.AddAttribute(nameof(IsRunning), IsRunning.Value);
            }
            if (Color != null)
            {
                builder.AddAttribute(nameof(Color), AttributeHelper.ColorToString(Color.Value));
            }
        }
Exemplo n.º 10
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Orientation != null)
            {
                builder.AddAttribute(nameof(Orientation), (int)Orientation.Value);
            }
            if (SplitterDistance != null)
            {
                builder.AddAttribute(nameof(SplitterDistance), SplitterDistance.Value);
            }
        }
Exemplo n.º 11
0
#pragma warning restore CA1721 // Property names should not match get methods

        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (IconImageSource != null)
            {
                builder.AddAttribute(nameof(IconImageSource), AttributeHelper.ImageSourceToString(IconImageSource));
            }
            if (Title != null)
            {
                builder.AddAttribute(nameof(Title), Title);
            }
        }
Exemplo n.º 12
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (ItemSizingStrategy != null)
            {
                builder.AddAttribute(nameof(ItemSizingStrategy), (int)ItemSizingStrategy.Value);
            }
            if (ItemsLayout != null)
            {
                builder.AddAttribute(nameof(ItemsLayout), AttributeHelper.ObjectToDelegate(ItemsLayout));
            }
        }
Exemplo n.º 13
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Width != null)
            {
                builder.AddAttribute(nameof(Width), Width.Value);
            }
            if (Height != null)
            {
                builder.AddAttribute(nameof(Height), Height.Value);
            }
        }
Exemplo n.º 14
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (AutomationId != null)
            {
                builder.AddAttribute(nameof(AutomationId), AutomationId);
            }
            if (StyleId != null)
            {
                builder.AddAttribute(nameof(StyleId), StyleId);
            }
        }
Exemplo n.º 15
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (HorizontalScrollBarVisibility != null)
            {
                builder.AddAttribute(nameof(HorizontalScrollBarVisibility), (int)HorizontalScrollBarVisibility.Value);
            }
            if (ItemsSource != null)
            {
                builder.AddAttribute(nameof(ItemsSource), AttributeHelper.ObjectToDelegate(ItemsSource));
            }
            if (ItemsUpdatingScrollMode != null)
            {
                builder.AddAttribute(nameof(ItemsUpdatingScrollMode), (int)ItemsUpdatingScrollMode.Value);
            }
            if (RemainingItemsThreshold != null)
            {
                builder.AddAttribute(nameof(RemainingItemsThreshold), RemainingItemsThreshold.Value);
            }
            if (VerticalScrollBarVisibility != null)
            {
                builder.AddAttribute(nameof(VerticalScrollBarVisibility), (int)VerticalScrollBarVisibility.Value);
            }
            builder.AddAttribute("onremainingitemsthresholdreached", OnRemainingItemsThresholdReached);
            builder.AddAttribute("onscrolled", OnScrolled);
            builder.AddAttribute("onscrolltorequested", OnScrollToRequested);
        }
Exemplo n.º 16
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (ColumnSpacing != null)
            {
                builder.AddAttribute(nameof(ColumnSpacing), AttributeHelper.DoubleToString(ColumnSpacing.Value));
            }
            if (RowSpacing != null)
            {
                builder.AddAttribute(nameof(RowSpacing), AttributeHelper.DoubleToString(RowSpacing.Value));
            }
            builder.AddAttribute(nameof(GridMetadata), System.Text.Json.JsonSerializer.Serialize(GridMetadata));
        }
Exemplo n.º 17
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Color != null)
            {
                builder.AddAttribute(nameof(Color), AttributeHelper.ColorToString(Color.Value));
            }
            if (CornerRadius != null)
            {
                builder.AddAttribute(nameof(CornerRadius), AttributeHelper.CornerRadiusToString(CornerRadius.Value));
            }

            RenderAdditionalAttributes(builder);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (EndPoint != null)
            {
                builder.AddAttribute(nameof(EndPoint), AttributeHelper.PointToString(EndPoint.Value));
            }
            if (StartPoint != null)
            {
                builder.AddAttribute(nameof(StartPoint), AttributeHelper.PointToString(StartPoint.Value));
            }

            RenderAdditionalAttributes(builder);
        }
Exemplo n.º 19
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Text != null)
            {
                builder.AddAttribute(nameof(Text), Text);
            }
            if (TextColor != null)
            {
                builder.AddAttribute(nameof(TextColor), AttributeHelper.ColorToString(TextColor.Value));
            }

            builder.AddAttribute("onclick", OnClick);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Progress != null)
            {
                builder.AddAttribute(nameof(Progress), AttributeHelper.DoubleToString(Progress.Value));
            }
            if (ProgressColor != null)
            {
                builder.AddAttribute(nameof(ProgressColor), AttributeHelper.ColorToString(ProgressColor));
            }

            RenderAdditionalAttributes(builder);
        }
Exemplo n.º 21
0
#pragma warning restore CA2227 // Collection properties should be read only

        protected override void RenderAttributes(AttributesBuilder builder)
        {
            if (Selector != null)
            {
                builder.AddAttribute(nameof(Selector), Selector);
            }
            if (ComponentType != null)
            {
                builder.AddAttribute(nameof(ComponentType), AttributeHelper.ObjectToDelegate(ComponentType));
            }
            if (Parameters != null)
            {
                builder.AddAttribute(nameof(Parameters), AttributeHelper.ObjectToDelegate(Parameters));
            }
        }
Exemplo n.º 22
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (@class != null)
            {
                builder.AddAttribute(nameof(@class), @class);
            }
            if (StyleClass != null)
            {
                builder.AddAttribute(nameof(StyleClass), StyleClass);
            }

            RenderAdditionalAttributes(builder);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Color != null)
            {
                builder.AddAttribute(nameof(Color), AttributeHelper.ColorToString(Color.Value));
            }
            if (Offset != null)
            {
                builder.AddAttribute(nameof(Offset), AttributeHelper.SingleToString(Offset.Value));
            }

            RenderAdditionalAttributes(builder);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Order != null)
            {
                builder.AddAttribute(nameof(Order), (int)Order.Value);
            }
            if (Priority != null)
            {
                builder.AddAttribute(nameof(Priority), Priority.Value);
            }

            RenderAdditionalAttributes(builder);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (ColumnSpacing != null)
            {
                builder.AddAttribute(nameof(ColumnSpacing), AttributeHelper.DoubleToString(ColumnSpacing.Value));
            }
            if (RowSpacing != null)
            {
                builder.AddAttribute(nameof(RowSpacing), AttributeHelper.DoubleToString(RowSpacing.Value));
            }

            RenderAdditionalAttributes(builder);
        }
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Color != null)
            {
                builder.AddAttribute(nameof(Color), AttributeHelper.ColorToString(Color.Value));
            }
            if (IsChecked != null)
            {
                builder.AddAttribute(nameof(IsChecked), IsChecked.Value);
            }

            RenderAdditionalAttributes(builder);
        }
Exemplo n.º 27
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Direction != null)
            {
                builder.AddAttribute(nameof(Direction), (int)Direction.Value);
            }
            if (Threshold != null)
            {
                builder.AddAttribute(nameof(Threshold), AttributeHelper.UInt32ToString(Threshold.Value));
            }

            builder.AddAttribute("onswiped", OnSwiped);
        }
 protected override void RenderAttributes(AttributesBuilder builder)
 {
     if (Visibility != null)
     {
         builder.AddAttribute(nameof(Visibility), Visibility);
     }
 }
Exemplo n.º 29
0
 partial void RenderAdditionalAttributes(AttributesBuilder builder)
 {
     if (BlurredTransformation != null)
     {
         builder.AddAttribute(nameof(BlurredTransformation), BlurredTransformation.Value);
     }
 }
Exemplo n.º 30
0
        protected override void RenderAttributes(AttributesBuilder builder)
        {
            base.RenderAttributes(builder);

            if (Text != null)
            {
                builder.AddAttribute(nameof(Text), Text);
            }
            if (Placeholder != null)
            {
                builder.AddAttribute(nameof(Placeholder), Placeholder);
            }

            builder.AddAttribute("oncompleted", OnCompleted);
            builder.AddAttribute("ontextchanged", EventCallback.Factory.Create <ChangeEventArgs>(this, HandleTextChanged));
        }