Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 2
 SizeChanged Event

  Switch on low bandwidth view
This page is specific to
Microsoft Silverlight 2

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
FrameworkElement..::.SizeChanged Event

Occurs when either the ActualHeight or the ActualWidth properties change value on a FrameworkElement.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public Event SizeChanged As SizeChangedEventHandler
Visual Basic (Usage)
Dim instance As FrameworkElement
Dim handler As SizeChangedEventHandler

AddHandler instance.SizeChanged, handler
C#
public event SizeChangedEventHandler SizeChanged
XAML Attribute Usage
<object SizeChanged="eventhandler"/>

The Silverlight layout system reads properties within the SizeChangedEventArgs argument class of this event, to determine whether the reported size changes should be considered significant. This allows the layout system to avoid forcing a layout change due to visually imperceptible differences between old and new height or width values. The imperceptible differences might be due to rounding or calculations of a floating-point value.

The SizeChanged event uses specialized event data derived from RoutedEventArgs, not EventArgs. However, the event does not bubble (does not travel a true event route).

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker