Skip to content

feat: Integrate XamlX into UI systemΒ #3

@Bli-AIk

Description

@Bli-AIk

πŸ”— Is your feature request related to a specific issue?

Building complex UI layouts programmatically by instantiating and positioning objects in code is tedious, error-prone, and makes it very difficult for designers to contribute. A declarative, markup-based approach is a far superior workflow.


πŸ’‘ Feature Description

Integrate the XamlX compiler into the MooaLewaUI framework. This will allow UI layouts and control hierarchies to be defined in a XAML-like markup language.

  • Expected outcome or effect: A declarative workflow where UI structure is defined in .xaml files, separating visual layout from code-behind logic.
  • Specific implementation ideas: The following definitions are for reference only and are subject to change. Implementation could include:
    • Use the XamlX library to parse XAML documents at compile-time or runtime.
    • Create a mapping between XAML tags (e.g., <Button>, <Grid>) and the UI framework's control classes.
    • Implement a XAML loader that constructs the UI tree based on the parsed document.
  • Usage scenarios or benefits: This enables a modern, declarative UI workflow similar to WPF, Avalonia, or MAUI. It dramatically speeds up UI development and allows for better collaboration between programmers and UI/UX designers.

βš– Alternatives Considered

N/A


πŸ“ Additional Information

XamlX is a good choice because it is a flexible XAML compiler that is not tied to a specific platform's UI toolkit, making it ideal for a custom framework like this.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions