protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (Aspect != null) { builder.AddAttribute(nameof(Aspect), (int)Aspect.Value); } if (BorderColor != null) { builder.AddAttribute(nameof(BorderColor), AttributeHelper.ColorToString(BorderColor.Value)); } if (BorderWidth != null) { builder.AddAttribute(nameof(BorderWidth), AttributeHelper.DoubleToString(BorderWidth.Value)); } if (CornerRadius != null) { builder.AddAttribute(nameof(CornerRadius), CornerRadius.Value); } if (IsOpaque != null) { builder.AddAttribute(nameof(IsOpaque), IsOpaque.Value); } if (Padding != null) { builder.AddAttribute(nameof(Padding), AttributeHelper.ThicknessToString(Padding.Value)); } if (Source != null) { builder.AddAttribute(nameof(Source), AttributeHelper.ObjectToDelegate(Source)); } RenderAdditionalAttributes(builder); }
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 (@class != null) { builder.AddAttribute(nameof(@class), @class); } if (IconImageSource != null) { builder.AddAttribute(nameof(IconImageSource), AttributeHelper.ObjectToDelegate(IconImageSource)); } if (IsDestructive != null) { builder.AddAttribute(nameof(IsDestructive), IsDestructive.Value); } if (IsEnabled != null) { builder.AddAttribute(nameof(IsEnabled), IsEnabled.Value); } if (StyleClass != null) { builder.AddAttribute(nameof(StyleClass), StyleClass); } if (Text != null) { builder.AddAttribute(nameof(Text), Text); } RenderAdditionalAttributes(builder); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (Maximum != null) { builder.AddAttribute(nameof(Maximum), AttributeHelper.DoubleToString(Maximum.Value)); } if (MaximumTrackColor != null) { builder.AddAttribute(nameof(MaximumTrackColor), AttributeHelper.ColorToString(MaximumTrackColor.Value)); } if (Minimum != null) { builder.AddAttribute(nameof(Minimum), AttributeHelper.DoubleToString(Minimum.Value)); } if (MinimumTrackColor != null) { builder.AddAttribute(nameof(MinimumTrackColor), AttributeHelper.ColorToString(MinimumTrackColor.Value)); } if (ThumbColor != null) { builder.AddAttribute(nameof(ThumbColor), AttributeHelper.ColorToString(ThumbColor.Value)); } if (ThumbImageSource != null) { builder.AddAttribute(nameof(ThumbImageSource), AttributeHelper.ObjectToDelegate(ThumbImageSource)); } if (Value != null) { builder.AddAttribute(nameof(Value), AttributeHelper.DoubleToString(Value.Value)); } RenderAdditionalAttributes(builder); }
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); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (FlyoutIcon != null) { builder.AddAttribute(nameof(FlyoutIcon), AttributeHelper.ObjectToDelegate(FlyoutIcon)); } if (FlyoutItemIsVisible != null) { builder.AddAttribute(nameof(FlyoutItemIsVisible), FlyoutItemIsVisible.Value); } if (Icon != null) { builder.AddAttribute(nameof(Icon), AttributeHelper.ObjectToDelegate(Icon)); } if (IsEnabled != null) { builder.AddAttribute(nameof(IsEnabled), IsEnabled.Value); } if (IsVisible != null) { builder.AddAttribute(nameof(IsVisible), IsVisible.Value); } if (Route != null) { builder.AddAttribute(nameof(Route), Route); } if (Title != null) { builder.AddAttribute(nameof(Title), Title); } RenderAdditionalAttributes(builder); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (CharacterSpacing != null) { builder.AddAttribute(nameof(CharacterSpacing), AttributeHelper.DoubleToString(CharacterSpacing.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 (HorizontalTextAlignment != null) { builder.AddAttribute(nameof(HorizontalTextAlignment), (int)HorizontalTextAlignment.Value); } if (ItemDisplayBinding != null) { builder.AddAttribute(nameof(ItemDisplayBinding), ItemDisplayBinding); } if (ItemsSource != null) { builder.AddAttribute(nameof(ItemsSource), AttributeHelper.ObjectToDelegate(ItemsSource)); } if (SelectedItem != null) { builder.AddAttribute(nameof(SelectedItem), AttributeHelper.ObjectToDelegate(SelectedItem)); } if (TextColor != null) { builder.AddAttribute(nameof(TextColor), AttributeHelper.ColorToString(TextColor)); } if (Title != null) { builder.AddAttribute(nameof(Title), Title); } if (TitleColor != null) { builder.AddAttribute(nameof(TitleColor), AttributeHelper.ColorToString(TitleColor)); } if (VerticalTextAlignment != null) { builder.AddAttribute(nameof(VerticalTextAlignment), (int)VerticalTextAlignment.Value); } builder.AddAttribute(nameof(SelectedIndex), SelectedIndex); builder.AddAttribute("onselecteditemchanged", EventCallback.Factory.Create <ChangeEventArgs>(this, HandleSelectedItemChanged)); builder.AddAttribute("onselectedindexchanged", EventCallback.Factory.Create <ChangeEventArgs>(this, HandleSelectedIndexChanged)); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (BorderColor != null) { builder.AddAttribute(nameof(BorderColor), AttributeHelper.ColorToString(BorderColor.Value)); } if (BorderWidth != null) { builder.AddAttribute(nameof(BorderWidth), AttributeHelper.DoubleToString(BorderWidth.Value)); } if (CharacterSpacing != null) { builder.AddAttribute(nameof(CharacterSpacing), AttributeHelper.DoubleToString(CharacterSpacing.Value)); } if (CornerRadius != null) { builder.AddAttribute(nameof(CornerRadius), CornerRadius.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 (ImageSource != null) { builder.AddAttribute(nameof(ImageSource), AttributeHelper.ObjectToDelegate(ImageSource)); } if (Padding != null) { builder.AddAttribute(nameof(Padding), AttributeHelper.ThicknessToString(Padding.Value)); } if (Text != null) { builder.AddAttribute(nameof(Text), Text); } if (TextColor != null) { builder.AddAttribute(nameof(TextColor), AttributeHelper.ColorToString(TextColor.Value)); } if (TextTransform != null) { builder.AddAttribute(nameof(TextTransform), (int)TextTransform.Value); } RenderAdditionalAttributes(builder); }
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)); } }
#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)); } }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (CharacterSpacing != null) { builder.AddAttribute(nameof(CharacterSpacing), AttributeHelper.DoubleToString(CharacterSpacing.Value)); } if (IsReadOnly != null) { builder.AddAttribute(nameof(IsReadOnly), IsReadOnly.Value); } if (IsSpellCheckEnabled != null) { builder.AddAttribute(nameof(IsSpellCheckEnabled), IsSpellCheckEnabled.Value); } if (Keyboard != null) { builder.AddAttribute(nameof(Keyboard), AttributeHelper.ObjectToDelegate(Keyboard)); } if (MaxLength != null) { builder.AddAttribute(nameof(MaxLength), MaxLength.Value); } if (Placeholder != null) { builder.AddAttribute(nameof(Placeholder), Placeholder); } if (PlaceholderColor != null) { builder.AddAttribute(nameof(PlaceholderColor), AttributeHelper.ColorToString(PlaceholderColor)); } if (Text != null) { builder.AddAttribute(nameof(Text), Text); } if (TextColor != null) { builder.AddAttribute(nameof(TextColor), AttributeHelper.ColorToString(TextColor)); } if (TextTransform != null) { builder.AddAttribute(nameof(TextTransform), (int)TextTransform.Value); } RenderAdditionalAttributes(builder); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (FlyoutBackgroundColor != null) { builder.AddAttribute(nameof(FlyoutBackgroundColor), AttributeHelper.ColorToString(FlyoutBackgroundColor)); } if (FlyoutBackgroundImage != null) { builder.AddAttribute(nameof(FlyoutBackgroundImage), AttributeHelper.ObjectToDelegate(FlyoutBackgroundImage)); } if (FlyoutBackgroundImageAspect != null) { builder.AddAttribute(nameof(FlyoutBackgroundImageAspect), (int)FlyoutBackgroundImageAspect.Value); } if (FlyoutBehavior != null) { builder.AddAttribute(nameof(FlyoutBehavior), (int)FlyoutBehavior.Value); } if (FlyoutHeaderBehavior != null) { builder.AddAttribute(nameof(FlyoutHeaderBehavior), (int)FlyoutHeaderBehavior.Value); } if (FlyoutHeight != null) { builder.AddAttribute(nameof(FlyoutHeight), AttributeHelper.DoubleToString(FlyoutHeight.Value)); } if (FlyoutIcon != null) { builder.AddAttribute(nameof(FlyoutIcon), AttributeHelper.ObjectToDelegate(FlyoutIcon)); } if (FlyoutIsPresented != null) { builder.AddAttribute(nameof(FlyoutIsPresented), FlyoutIsPresented.Value); } if (FlyoutVerticalScrollMode != null) { builder.AddAttribute(nameof(FlyoutVerticalScrollMode), (int)FlyoutVerticalScrollMode.Value); } if (FlyoutWidth != null) { builder.AddAttribute(nameof(FlyoutWidth), AttributeHelper.DoubleToString(FlyoutWidth.Value)); } RenderAdditionalAttributes(builder); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (SelectedItems != null) { builder.AddAttribute(nameof(SelectedItems), AttributeHelper.ObjectToDelegate(SelectedItems)); } if (SelectedItem != null) { builder.AddAttribute(nameof(SelectedItem), AttributeHelper.ObjectToDelegate(SelectedItem)); } if (SelectionMode != null) { builder.AddAttribute(nameof(SelectionMode), (int)SelectionMode.Value); } builder.AddAttribute("onselectionchanged", OnSelectionChanged); builder.AddAttribute("onselecteditemchanged", EventCallback.Factory.Create <ChangeEventArgs>(this, e => SelectedItemChanged.InvokeAsync(e.Value))); builder.AddAttribute("onselecteditemschanged", EventCallback.Factory.Create <ChangeEventArgs>(this, e => SelectedItemsChanged.InvokeAsync((IList <object>)e.Value))); }
protected override void RenderAttributes(AttributesBuilder builder) { base.RenderAttributes(builder); if (Aspect != null) { builder.AddAttribute(nameof(Aspect), (int)Aspect.Value); } if (IsAnimationPlaying != null) { builder.AddAttribute(nameof(IsAnimationPlaying), IsAnimationPlaying.Value); } if (IsOpaque != null) { builder.AddAttribute(nameof(IsOpaque), IsOpaque.Value); } if (Source != null) { builder.AddAttribute(nameof(Source), AttributeHelper.ObjectToDelegate(Source)); } RenderAdditionalAttributes(builder); }