Intersoft ClientUI Documentation
ContentChangedEvent Field
See Also  Example Send Feedback
Intersoft.Client.Framework Namespace > ISContentControl Class : ContentChangedEvent Field






ContentChanged routed event.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly ContentChangedEvent As RoutedEvent
Visual Basic (Usage)Copy Code
Dim value As RoutedEvent
 
value = ISContentControl.ContentChangedEvent
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

ContentChangedEvent is a routed event that raised when Content value of ISContentControl is changed.

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

© 2012 All Rights Reserved.