Skip to content

Discussion: VisualStateManager should provide more feedback when not placed in the right place #5576

@michael-hawker

Description

@michael-hawker

Discussion: Discussion: VisualStateManager should provide more feedback when not placed in the right place

Was trying to debug why our re-template of a control wasn't working, and only realized later after spending a couple of hours debugging and digging into the VSM states that the VSM wasn't defined in the root Grid of the template (the most likely cause).

The fact the VSM needs to be at the top/bottom of the top-level element of the control, isn't well documented, confusing, and easy to miss. If a VSM is initialized as part of a place where it's not going to work well, it should provide some warning or error to the app developer.

Related Links

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