Skip to content

Proposal: Improve Microsoft.UI.Xaml.Window by Adding Dependency Property Support #10358

Open
@ghost1372

Description

The current Microsoft.UI.Xaml.Window class in WinUI lacks convenience APIs such as Width, Height, and other essential properties that developers commonly use in XAML-based applications. Additionally, Window does not inherit from DependencyObject or UIElement, preventing developers from adding DependencyProperty to it. While simple or full properties can be added, they do not function as expected in XAML at runtime and only work once when the application launches. Given that these limitations have persisted for years, it is crucial to support for DependencyProperty to allow more flexibility in windowing scenarios.

After a few years, the convenience api for window were finally unveiled in v1.7-exp3, but everyone was disappointed. Because access to it was allowed through the AppWindow.

Therefore, it is better to provide a way for creating dependency property. So that developers can easily meet their own needs and not wait months for Disappointing features from Microsoft.

Metadata

Assignees

No one assigned

    Labels

    feature proposalNew feature proposalneeds-triageIssue needs to be triaged by the area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions