Caliburn-Micro / Caliburn.Micro

A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
http://caliburnmicro.com/
MIT License
2.79k stars 776 forks source link

IsVisibleChanged not attched to viewmodel method at UserControl message attach #830

Closed mrtnbrst closed 1 year ago

mrtnbrst commented 1 year ago

I am facing the same issue as the user in this stackoverflow post - any solution / workaround?

The attached method is not called when the IsVisibleChanged event fires. The event actually is raised as I checked with an event handler in the code behind file.

KasperSK commented 1 year ago

I wrote an answer on stackoverflow. But to make a short story of it is that IsVisibleChanged is a CLR event and not a routed event. I would suggest binding to the IsVisible property instead.