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

  Switch on low bandwidth view
.NET Framework Class Library for Silverlight
FrameworkElement..::.LayoutUpdated Event

Updated: November 2008

Occurs when the layout of the various child objects associated with the current Silverlight plug-in instance changes.

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

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

LayoutUpdated is the last object lifetime event to occur in the sequence prior to a control being ready for interaction. However, LayoutUpdated also can occur at run time during the object lifetime, for a variety of reasons: a property change, a window resizing, or an explicit request (UpdateLayout or ApplyTemplate).

In WPF, this event is a routed event. In Silverlight, this event is not a routed event; it is a standard CLR event that uses EventArgs, not RoutedEventArgs.

LayoutUpdated can occur in cases where the object that raises the event does not necessarily change the visual tree under it. For instance, imagine a layout container where there are two elements. If the first object changes a property that forces a new layout, then both objects raise LayoutUpdated because the second object might be repositioned even if its own subsidiary layout does not change.

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

Date

History

Reason

November 2008

Added Remarks related to object lifetime and the potential to occur at run time.

Content bug fix.

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