Skip to content

Suggestion: Also allow us to write x:Class="views:DetailPage" instead of x:Class="Xyz.Views.DetailPage" #32439

@suugbut

Description

@suugbut

Description

If we have the following namespaces defined,

xmlns:views="clr-namespace:Xyz.Views"
xmlns:models="clr-namespace:Xyz.ViewModels"

we can write

x:TypeArguments="views:DetailPage"
x:DataType="models:DetailPageModel"

Unfortunately, the following

x:Class="Xyz.Views.DetailPage"                         

cannot be written as

x:Class="views:DetailPage"                         

Request

For the sake of consistency and improved developer experience, could you please consider allowing the following syntax as well?

x:Class="views:DetailPage"                         

Allowing this form would make the syntax more consistent and help developers avoid unnecessary memorization of exceptions — which would be a welcome improvement.

Public API Changes

Nothing

Intended Use-Case

Nothing

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions