| 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 | |
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.
| Property | Description |
|---|---|
| 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. |
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 } | |
ContentChanged event raised when Content of ISContentControl is changed.
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