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






Occurs when content is changes.

Syntax

Visual Basic (Declaration) 
Public Event ContentChanged As ContentChangedRoutedEventHandler
Visual Basic (Usage)Copy Code
Dim instance As ISContentControl
Dim handler As ContentChangedRoutedEventHandler
 
AddHandler instance.ContentChanged, handler
C# 
public event ContentChangedRoutedEventHandler ContentChanged
Delphi 
public event ContentChanged: ContentChangedRoutedEventHandler; 
JScript 
In JScript, you can handle the events defined by another class, but you cannot define your own.
Managed Extensions for C++ 
public: __event ContentChangedRoutedEventHandler* ContentChanged
C++/CLI 
public:
event ContentChangedRoutedEventHandler^ ContentChanged

Event Data

The event handler receives an argument of type ContentChangedRoutedEventArgs containing data related to this event. The following ContentChangedRoutedEventArgs properties provide information specific to this event.

PropertyDescription
Handled (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
HandledBy (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) 
IsHandledByPrimitive (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) 
NewContent Gets the new content.
OldContent Gets the old content.
OriginalSource (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) 
RoutedEvent (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) 
Source (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Gets or sets a reference to the object that raised the event.

Example

The following example shows how to handle ContentChanged event.
C#Copy Code
public MainPage()
{
    // Required to initialize variables
    InitializeComponent();
                        
    this.StylishLabel1.ContentChanged += 
        new ContentChangedRoutedEventHandler(StylishLabel_ContentChanged);
}

private void StylishLabel_ContentChanged(object sender, ContentChangedRoutedEventArgs e)
{
    // Handles content changed
}

Remarks

ContentChanged event raised when Content 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.