910209 - Where's ResizeEnd event?
hi
i need to know when resize ends in my Silverlight application. how can i do that?
ResizeEnd exists in a form application, but not in a Silverlight application. how can i resemble it?
1
Expert's answer
2012-11-12T05:44:40-0500
1. If you mean that user change Browser size than you cannot know when he stop resize. You can only handle SizeChanged event, like this private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e) { if (e.PreviousSize.Width == 0 || e.PreviousSize.Height == 0) return;
2. If you mean that user change Control size than you can handle MouseLeftButtonDown/MouseLeftButtonUp event, like this: bool isInResizeMode = false; Point lastPos;
Comments
Leave a comment