Gu.Localization icon indicating copy to clipboard operation
Gu.Localization copied to clipboard

StaticExtension does not play well with dp inheritance for ErrorHandling.Mode.

Open JohanLarsson opened this issue 8 years ago • 0 comments

Checked in test NoTranslationsWithReturnErrorInfo with repro. My guess is that the static extension is called before the inheritance has trickled down when the control is buried deep in the visual tree.

A couple of alternative solutions:

  • Defer a check with DispatcherPriority.Loaded
    • Implement a subscription mechanism that updates the binding when ErrorHandling.Mode changes.

JohanLarsson avatar Jun 23 '16 10:06 JohanLarsson