WPF event in VisibilityChanged

I want to set up an event to fire when visibility changes in a WPF canvas control.

canvas1.VisibileChanged += new EventHandler(canvas1_VisibleChanged);

I tried above, but it does not work, does anyone know how to do this?

Greetings

+5
source share
2 answers

UIElement.IsVisibleChanged

You are looking for an event IsVisibleChangedthat applies to all UIElements.


: IsVisible - . , . , UIElement . , DP - , : http://agsmith.wordpress.com/2008/04/07/propertydescriptor-addvaluechanged-alternative/

, IsVisibleChanged.

+19

WPF Canvas .VisibleChanged, .

+2

All Articles