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
UIElement.IsVisibleChanged
You are looking for an event IsVisibleChangedthat applies to all UIElements.
IsVisibleChanged
: IsVisible - . , . , UIElement . , DP - , : http://agsmith.wordpress.com/2008/04/07/propertydescriptor-addvaluechanged-alternative/
, IsVisibleChanged.
WPF Canvas .VisibleChanged, .