Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

SortDescription should get default constructor to be used in XAML #3251

Description

@MovGP0

Describe the problem this feature would solve

There is no default constructor on ui:SortDescription, so I cannot use them in XAML like:

<ui:AdvancedCollectionView
    x:Name="ItemsSorted"
    Source="{Binding Items}" >
    <ui:AdvancedCollectionView.SortDescriptions>
        <ui:SortDescription PropertyName="Name" Direction="Ascending" />
    </ui:AdvancedCollectionView.SortDescriptions>
</ui:AdvancedCollectionView>

Describe the solution

There should be a default constructor on the class and the properties should be bindable in XAML.

Workaround

It is currently only possible to set it in code behind:

ItemsSorted.SortDescriptions.Add(new SortDescription("Name", SortDirection.Ascending));

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬A request for new changes to improve functionality

    Type

    No type

    Fields

    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