Skip to content

[Feature] replace hstack and vstack with stack #513

@HMO-SOUL

Description

@HMO-SOUL

Problem

greeting reactor team, I hope you are doing fine, I love this new project and I think it will be a very good replacement for xaml, especially for people like me who are tired of xaml limitation and boilerplates and bad debugging experience

in xaml the stack is one control with the ability to change Orientation

<StackPanel Orientation="Horizontal">
</StackPanel>

in reactor we have

VStack() ;
HStack();

both feels redundant and can be replaced with one function, the horizontal and vertical stack code and functionalities all almost the same

Proposed solution

replace both functions with one stack function that use an enum to switch between horizontal and vertical mode

Stack(StackMode.Vertical
            TextBlock("I love WinUI")
            TextBox(opinion , setOpinion, placeholderText: "Your Opinion about WinUI? ")
                
        );

Alternatives considered

No response

Additional context

No response

Confirmation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions