Skip to content

How to force Binding.addValidation upon returning to wpf usercontrol? #593

@awaynemd

Description

@awaynemd

My wpf window is setup to switch between multiple usercontrols. Upon first showing of the first usercontrol, the bindings are correctly read and the addValidation code called resulting in red boxes around invalid textblocks.

I then switch to the second user control such that the first user control is no longer visible. All works well.

However, when I return to the first usercontrol with the invalid textblock, the red box surrounding the invalid data is no longer visible.

How can I force validation without a change in data on the first usercontrol (to again show the invalid red box) ?

Note: Microsoft recommends ValidatesOnTargetUpdated="True" , is this implemented in Elmish.wpf?

Thanks for any help or suggestions.

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