Skip to content

Improve MVVM support for some Toolkit controls #498

@nCastle1

Description

@nCastle1

Search and FloorFilter both depend on setting a DataContext in the constructor. This doesn't work if there is an externally-set DataContext, which is quite common in MVVM scenarios.

The quick fix is to add a wrapping FrameworkElement in the control template, and explicitly set the DataContext to {x:Null}, then set the DataContext on the child.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions