97 instantiations of StylePropertyAttribute
Microsoft.Maui.Controls (82)
Properties\AssemblyInfo.cs (82)
84
[assembly:
StyleProperty
("background-color", typeof(VisualElement), nameof(VisualElement.BackgroundColorProperty))]
85
[assembly:
StyleProperty
("background", typeof(VisualElement), nameof(VisualElement.BackgroundProperty))]
86
[assembly:
StyleProperty
("background-image", typeof(Page), nameof(Page.BackgroundImageSourceProperty))]
87
[assembly:
StyleProperty
("border-color", typeof(IBorderElement), nameof(BorderElement.BorderColorProperty))]
88
[assembly:
StyleProperty
("border-radius", typeof(ICornerElement), nameof(CornerElement.CornerRadiusProperty))]
89
[assembly:
StyleProperty
("border-radius", typeof(Button), nameof(Button.CornerRadiusProperty))]
91
[assembly:
StyleProperty
("border-radius", typeof(Frame), nameof(Frame.CornerRadiusProperty))]
93
[assembly:
StyleProperty
("border-radius", typeof(ImageButton), nameof(BorderElement.CornerRadiusProperty))]
94
[assembly:
StyleProperty
("border-width", typeof(IBorderElement), nameof(BorderElement.BorderWidthProperty))]
95
[assembly:
StyleProperty
("color", typeof(IColorElement), nameof(ColorElement.ColorProperty), Inherited = true)]
96
[assembly:
StyleProperty
("color", typeof(ITextElement), nameof(TextElement.TextColorProperty), Inherited = true)]
97
[assembly:
StyleProperty
("text-transform", typeof(ITextElement), nameof(TextElement.TextTransformProperty), Inherited = true)]
98
[assembly:
StyleProperty
("color", typeof(ProgressBar), nameof(ProgressBar.ProgressColorProperty))]
99
[assembly:
StyleProperty
("color", typeof(Switch), nameof(Switch.OnColorProperty))]
100
[assembly:
StyleProperty
("column-gap", typeof(Grid), nameof(Grid.ColumnSpacingProperty))]
101
[assembly:
StyleProperty
("direction", typeof(VisualElement), nameof(VisualElement.FlowDirectionProperty), Inherited = true)]
102
[assembly:
StyleProperty
("font-family", typeof(IFontElement), nameof(FontElement.FontFamilyProperty), Inherited = true)]
103
[assembly:
StyleProperty
("font-size", typeof(IFontElement), nameof(FontElement.FontSizeProperty), Inherited = true)]
104
[assembly:
StyleProperty
("font-style", typeof(IFontElement), nameof(FontElement.FontAttributesProperty), Inherited = true)]
105
[assembly:
StyleProperty
("height", typeof(VisualElement), nameof(VisualElement.HeightRequestProperty))]
106
[assembly:
StyleProperty
("margin", typeof(View), nameof(View.MarginProperty))]
107
[assembly:
StyleProperty
("margin-left", typeof(View), nameof(View.MarginLeftProperty))]
108
[assembly:
StyleProperty
("margin-top", typeof(View), nameof(View.MarginTopProperty))]
109
[assembly:
StyleProperty
("margin-right", typeof(View), nameof(View.MarginRightProperty))]
110
[assembly:
StyleProperty
("margin-bottom", typeof(View), nameof(View.MarginBottomProperty))]
111
[assembly:
StyleProperty
("max-lines", typeof(Label), nameof(Label.MaxLinesProperty))]
112
[assembly:
StyleProperty
("min-height", typeof(VisualElement), nameof(VisualElement.MinimumHeightRequestProperty))]
113
[assembly:
StyleProperty
("min-width", typeof(VisualElement), nameof(VisualElement.MinimumWidthRequestProperty))]
114
[assembly:
StyleProperty
("opacity", typeof(VisualElement), nameof(VisualElement.OpacityProperty))]
115
[assembly:
StyleProperty
("padding", typeof(IPaddingElement), nameof(PaddingElement.PaddingProperty))]
116
[assembly:
StyleProperty
("padding-left", typeof(IPaddingElement), nameof(PaddingElement.PaddingLeftProperty), PropertyOwnerType = typeof(PaddingElement))]
117
[assembly:
StyleProperty
("padding-top", typeof(IPaddingElement), nameof(PaddingElement.PaddingTopProperty), PropertyOwnerType = typeof(PaddingElement))]
118
[assembly:
StyleProperty
("padding-right", typeof(IPaddingElement), nameof(PaddingElement.PaddingRightProperty), PropertyOwnerType = typeof(PaddingElement))]
119
[assembly:
StyleProperty
("padding-bottom", typeof(IPaddingElement), nameof(PaddingElement.PaddingBottomProperty), PropertyOwnerType = typeof(PaddingElement))]
120
[assembly:
StyleProperty
("row-gap", typeof(Grid), nameof(Grid.RowSpacingProperty))]
121
[assembly:
StyleProperty
("text-align", typeof(ITextAlignmentElement), nameof(TextAlignmentElement.HorizontalTextAlignmentProperty), Inherited = true)]
122
[assembly:
StyleProperty
("text-decoration", typeof(IDecorableTextElement), nameof(DecorableTextElement.TextDecorationsProperty))]
123
[assembly:
StyleProperty
("transform", typeof(VisualElement), nameof(VisualElement.TransformProperty))]
124
[assembly:
StyleProperty
("transform-origin", typeof(VisualElement), nameof(VisualElement.TransformOriginProperty))]
125
[assembly:
StyleProperty
("vertical-align", typeof(ITextAlignmentElement), nameof(TextAlignmentElement.VerticalTextAlignmentProperty))]
126
[assembly:
StyleProperty
("visibility", typeof(VisualElement), nameof(VisualElement.IsVisibleProperty), Inherited = true)]
127
[assembly:
StyleProperty
("width", typeof(VisualElement), nameof(VisualElement.WidthRequestProperty))]
128
[assembly:
StyleProperty
("letter-spacing", typeof(ITextElement), nameof(TextElement.CharacterSpacingProperty), Inherited = true)]
129
[assembly:
StyleProperty
("line-height", typeof(ILineHeightElement), nameof(LineHeightElement.LineHeightProperty), Inherited = true)]
132
[assembly:
StyleProperty
("align-content", typeof(FlexLayout), nameof(FlexLayout.AlignContentProperty))]
133
[assembly:
StyleProperty
("align-items", typeof(FlexLayout), nameof(FlexLayout.AlignItemsProperty))]
134
[assembly:
StyleProperty
("align-self", typeof(VisualElement), nameof(FlexLayout.AlignSelfProperty), PropertyOwnerType = typeof(FlexLayout))]
135
[assembly:
StyleProperty
("flex-direction", typeof(FlexLayout), nameof(FlexLayout.DirectionProperty))]
136
[assembly:
StyleProperty
("flex-basis", typeof(VisualElement), nameof(FlexLayout.BasisProperty), PropertyOwnerType = typeof(FlexLayout))]
137
[assembly:
StyleProperty
("flex-grow", typeof(VisualElement), nameof(FlexLayout.GrowProperty), PropertyOwnerType = typeof(FlexLayout))]
138
[assembly:
StyleProperty
("flex-shrink", typeof(VisualElement), nameof(FlexLayout.ShrinkProperty), PropertyOwnerType = typeof(FlexLayout))]
139
[assembly:
StyleProperty
("flex-wrap", typeof(VisualElement), nameof(FlexLayout.WrapProperty), PropertyOwnerType = typeof(FlexLayout))]
140
[assembly:
StyleProperty
("justify-content", typeof(FlexLayout), nameof(FlexLayout.JustifyContentProperty))]
141
[assembly:
StyleProperty
("order", typeof(VisualElement), nameof(FlexLayout.OrderProperty), PropertyOwnerType = typeof(FlexLayout))]
142
[assembly:
StyleProperty
("position", typeof(FlexLayout), nameof(FlexLayout.PositionProperty))]
145
[assembly:
StyleProperty
("-maui-placeholder", typeof(IPlaceholderElement), nameof(PlaceholderElement.PlaceholderProperty))]
146
[assembly:
StyleProperty
("-maui-placeholder-color", typeof(IPlaceholderElement), nameof(PlaceholderElement.PlaceholderColorProperty))]
147
[assembly:
StyleProperty
("-maui-max-length", typeof(InputView), nameof(InputView.MaxLengthProperty))]
148
[assembly:
StyleProperty
("-maui-bar-background-color", typeof(IBarElement), nameof(BarElement.BarBackgroundColorProperty))]
149
[assembly:
StyleProperty
("-maui-bar-text-color", typeof(IBarElement), nameof(BarElement.BarTextColorProperty))]
150
[assembly:
StyleProperty
("-maui-orientation", typeof(ScrollView), nameof(ScrollView.OrientationProperty))]
151
[assembly:
StyleProperty
("-maui-horizontal-scroll-bar-visibility", typeof(ScrollView), nameof(ScrollView.HorizontalScrollBarVisibilityProperty))]
152
[assembly:
StyleProperty
("-maui-vertical-scroll-bar-visibility", typeof(ScrollView), nameof(ScrollView.VerticalScrollBarVisibilityProperty))]
153
[assembly:
StyleProperty
("-maui-min-track-color", typeof(Slider), nameof(Slider.MinimumTrackColorProperty))]
154
[assembly:
StyleProperty
("-maui-max-track-color", typeof(Slider), nameof(Slider.MaximumTrackColorProperty))]
155
[assembly:
StyleProperty
("-maui-thumb-color", typeof(Slider), nameof(Slider.ThumbColorProperty))]
156
[assembly:
StyleProperty
("-maui-spacing", typeof(StackBase), nameof(StackBase.SpacingProperty))]
157
[assembly:
StyleProperty
("-maui-orientation", typeof(StackLayout), nameof(StackLayout.OrientationProperty))]
159
[assembly:
StyleProperty
("-maui-visual", typeof(VisualElement), nameof(VisualElement.VisualProperty))]
160
[assembly:
StyleProperty
("-maui-vertical-text-alignment", typeof(Label), nameof(TextAlignmentElement.VerticalTextAlignmentProperty))]
161
[assembly:
StyleProperty
("-maui-thumb-color", typeof(Switch), nameof(Switch.ThumbColorProperty))]
164
[assembly:
StyleProperty
("-maui-flyout-background", typeof(Shell), nameof(Shell.FlyoutBackgroundColorProperty))]
165
[assembly:
StyleProperty
("-maui-shell-background", typeof(Element), nameof(Shell.BackgroundColorProperty), PropertyOwnerType = typeof(Shell))]
166
[assembly:
StyleProperty
("-maui-shell-disabled", typeof(Element), nameof(Shell.DisabledColorProperty), PropertyOwnerType = typeof(Shell))]
167
[assembly:
StyleProperty
("-maui-shell-foreground", typeof(Element), nameof(Shell.ForegroundColorProperty), PropertyOwnerType = typeof(Shell))]
168
[assembly:
StyleProperty
("-maui-shell-tabbar-background", typeof(Element), nameof(Shell.TabBarBackgroundColorProperty), PropertyOwnerType = typeof(Shell))]
169
[assembly:
StyleProperty
("-maui-shell-tabbar-disabled", typeof(Element), nameof(Shell.TabBarDisabledColorProperty), PropertyOwnerType = typeof(Shell))]
170
[assembly:
StyleProperty
("-maui-shell-tabbar-foreground", typeof(Element), nameof(Shell.TabBarForegroundColorProperty), PropertyOwnerType = typeof(Shell))]
171
[assembly:
StyleProperty
("-maui-shell-tabbar-title", typeof(Element), nameof(Shell.TabBarTitleColorProperty), PropertyOwnerType = typeof(Shell))]
172
[assembly:
StyleProperty
("-maui-shell-tabbar-unselected", typeof(Element), nameof(Shell.TabBarUnselectedColorProperty), PropertyOwnerType = typeof(Shell))]
173
[assembly:
StyleProperty
("-maui-shell-title", typeof(Element), nameof(Shell.TitleColorProperty), PropertyOwnerType = typeof(Shell))]
174
[assembly:
StyleProperty
("-maui-shell-unselected", typeof(Element), nameof(Shell.UnselectedColorProperty), PropertyOwnerType = typeof(Shell))]
Microsoft.Maui.Controls.Compatibility (15)
Properties\AssemblyInfo.cs (15)
15
[assembly:
StyleProperty
("column-gap", typeof(CGrid), nameof(CGrid.ColumnSpacingProperty))]
16
[assembly:
StyleProperty
("row-gap", typeof(CGrid), nameof(CGrid.RowSpacingProperty))]
19
[assembly:
StyleProperty
("align-content", typeof(CFlexLayout), nameof(CFlexLayout.AlignContentProperty))]
20
[assembly:
StyleProperty
("align-items", typeof(CFlexLayout), nameof(CFlexLayout.AlignItemsProperty))]
21
[assembly:
StyleProperty
("align-self", typeof(VisualElement), nameof(CFlexLayout.AlignSelfProperty), PropertyOwnerType = typeof(CFlexLayout))]
22
[assembly:
StyleProperty
("flex-direction", typeof(CFlexLayout), nameof(CFlexLayout.DirectionProperty))]
23
[assembly:
StyleProperty
("flex-basis", typeof(VisualElement), nameof(CFlexLayout.BasisProperty), PropertyOwnerType = typeof(CFlexLayout))]
24
[assembly:
StyleProperty
("flex-grow", typeof(VisualElement), nameof(CFlexLayout.GrowProperty), PropertyOwnerType = typeof(CFlexLayout))]
25
[assembly:
StyleProperty
("flex-shrink", typeof(VisualElement), nameof(CFlexLayout.ShrinkProperty), PropertyOwnerType = typeof(CFlexLayout))]
26
[assembly:
StyleProperty
("flex-wrap", typeof(VisualElement), nameof(CFlexLayout.WrapProperty), PropertyOwnerType = typeof(CFlexLayout))]
27
[assembly:
StyleProperty
("justify-content", typeof(CFlexLayout), nameof(CFlexLayout.JustifyContentProperty))]
28
[assembly:
StyleProperty
("order", typeof(VisualElement), nameof(CFlexLayout.OrderProperty), PropertyOwnerType = typeof(CFlexLayout))]
29
[assembly:
StyleProperty
("position", typeof(CFlexLayout), nameof(CFlexLayout.PositionProperty))]
32
[assembly:
StyleProperty
("-maui-spacing", typeof(CStackLayout), nameof(CStackLayout.SpacingProperty))]
33
[assembly:
StyleProperty
("-maui-orientation", typeof(CStackLayout), nameof(CStackLayout.OrientationProperty))]
11 references to StylePropertyAttribute
Microsoft.Maui.Controls (11)
Registrar.cs (10)
314
internal static Dictionary<string, IList<
StylePropertyAttribute
>> StyleProperties => LazyStyleProperties.Value;
317
static readonly Lazy<Dictionary<string, IList<
StylePropertyAttribute
>>> LazyStyleProperties = new Lazy<Dictionary<string, IList<
StylePropertyAttribute
>>>(LoadStyleSheets);
357
static Dictionary<string, IList<
StylePropertyAttribute
>> LoadStyleSheets()
359
var properties = new Dictionary<string, IList<
StylePropertyAttribute
>>(StringComparer.Ordinal);
362
var assembly = typeof(
StylePropertyAttribute
).Assembly;
363
var styleAttributes = assembly.GetCustomAttributesSafe(typeof(
StylePropertyAttribute
));
367
var
attribute = (
StylePropertyAttribute
)styleAttributes[i];
371
properties[attribute.CssPropertyName] = new List<
StylePropertyAttribute
> { attribute };
VisualElement\VisualElement_StyleSheet.cs (1)
20
StylePropertyAttribute
styleAttribute = null;