Skip to content

Commit

Permalink
enable css for StackBase, remove for StackLayout (#22419)
Browse files Browse the repository at this point in the history
* enable css for StackBase, remove for StackLayout

* return orientationProperty fot stackLayout and remove for StackBase

* remove comments

---------

Co-authored-by: Egor Malyshkin <malyshkin@hightech.group>
  • Loading branch information
Giviruk and Egor Malyshkin committed May 17, 2024
1 parent 86c60b3 commit 756c90d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Controls/src/Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,9 @@
[assembly: StyleProperty("-maui-min-track-color", typeof(Slider), nameof(Slider.MinimumTrackColorProperty))]
[assembly: StyleProperty("-maui-max-track-color", typeof(Slider), nameof(Slider.MaximumTrackColorProperty))]
[assembly: StyleProperty("-maui-thumb-color", typeof(Slider), nameof(Slider.ThumbColorProperty))]
[assembly: StyleProperty("-maui-spacing", typeof(StackLayout), nameof(StackLayout.SpacingProperty))]
[assembly: StyleProperty("-maui-spacing", typeof(StackBase), nameof(StackBase.SpacingProperty))]
[assembly: StyleProperty("-maui-orientation", typeof(StackLayout), nameof(StackLayout.OrientationProperty))]

// TODO ezhart 2021-07-16 When we fix #1634, we'll need to enable this so the CSS applies
//[assembly: StyleProperty("-maui-spacing", typeof(StackLayout), nameof(StackLayout.SpacingProperty))]

// TODO ezhart 2021-07-16 When we create the new composed StackLayout, we'll need to ensure we have this enabled
//[assembly: StyleProperty("-maui-orientation", typeof(StackLayout), nameof(StackLayout.OrientationProperty))]

[assembly: StyleProperty("-maui-visual", typeof(VisualElement), nameof(VisualElement.VisualProperty))]
[assembly: StyleProperty("-maui-vertical-text-alignment", typeof(Label), nameof(TextAlignmentElement.VerticalTextAlignmentProperty))]
[assembly: StyleProperty("-maui-thumb-color", typeof(Switch), nameof(Switch.ThumbColorProperty))]
Expand Down

0 comments on commit 756c90d

Please sign in to comment.