ContentChanged routed event.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly ContentChangedEvent As RoutedEvent |
C# | |
---|
public static readonly RoutedEvent ContentChangedEvent |
Delphi | |
---|
public field ContentChangedEvent: RoutedEvent; static; readonly |
JScript | |
---|
public static var ContentChangedEvent : RoutedEvent; |
Managed Extensions for C++ | |
---|
public: static readonly RoutedEvent* ContentChangedEvent |
C++/CLI | |
---|
public:
static readonly RoutedEvent^ ContentChangedEvent |
Example
The following example shows how to handle ContentChanged routed event using ISEventManager
C# | Copy Code |
---|
public MainPage()
{
// Required to initialize variables
InitializeComponent();
ISEventManager.RegisterInstanceHandler(this.LayoutRoot,
Intersoft.Client.Framework.ISContentControl.ContentChangedEvent,
new ContentChangedRoutedEventHandler(StylishLabel_ContentChanged), false);
}
private void StylishLabel_ContentChanged(object sender, ContentChangedRoutedEventArgs e)
{
// Handles content changed
} |
The following example shows how to handle ContentChanged rotued event using EventManager
C# | Copy Code |
---|
public MainPage()
{
// Required to initialize variables
InitializeComponent();
EventManager.RegisterClassHandler(typeof(MainPage),
Intersoft.Client.Framework.ISContentControl.ContentChangedEvent, new
ContentChangedRoutedEventHandler(StylishLabel_ContentChanged), false);
}
private void StylishLabel_ContentChanged(object sender, ContentChangedRoutedEventArgs e)
{
// Handles content changed
} |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also