I have element with visibility but I don't know to do something on isVisibleChanged right way.
So lets say I have element with name SomePanel
So I can access SomePanel.IsVisibleChanged
What I found on the internet is
public event DependencyPropertyChangedEventHandler IsSomePanelVisible;
somePanel.IsVisibleChanged += IsSomePanelVisible;
But I need method after += where can I put my logic. How can I do that?