Intersoft ClientUI Documentation
ContentChanged Event
Example 



Occurs when content is changes.
Syntax
Public Event ContentChanged As ContentChangedRoutedEventHandler
Dim instance As ISContentControl
Dim handler As ContentChangedRoutedEventHandler
 
AddHandler instance.ContentChanged, handler
public event ContentChangedRoutedEventHandler ContentChanged
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)Gets or sets the source object that handles this event.
IsHandledByPrimitive (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Determines whether this event is handled internally by control infrastructure.
NewContent Gets the new content.
OldContent Gets the old content.
OriginalSource (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
RoutedEvent (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Gets or sets the RoutedEvent associated with this RoutedEventArgs instance.
Source (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) Gets or sets a reference to the object that raised the event.
Remarks
ContentChanged event raised when Content of ISContentControl is changed.
Example
The following example shows how to handle ContentChanged event.
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
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ISContentControl Class
ISContentControl Members

Concepts

Content Model Overview

Send Feedback