Keysight Pathwave 89600 VSA .NET API
NotifyPropertyChangedWrapper Class
Members  Example  See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace : NotifyPropertyChangedWrapper Class


Glossary Item Box

This class implements a wrapper to allow System.ComponentModel.INotifyPropertyChanged.PropertyChanged events to be propagated across the .NET remoting boundary.

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class NotifyPropertyChangedWrapper 
   Inherits System.MarshalByRefObject
C# 
public sealed class NotifyPropertyChangedWrapper : System.MarshalByRefObject 
C++/CLI 
public ref class NotifyPropertyChangedWrapper sealed : public System.MarshalByRefObject 

Remarks

This wrapper is required as an intermediary between the client and server sides of the remoting boundary so that the server does not have to have type knowledge of the client.

Example

The following code snippet shows how to monitor the Application object for System.ComponentModel.INotifyPropertyChanged.PropertyChanged events to detect when the Application.IsVisible property goes false.
C#Copy Code
using (var wrapper = new NotifyPropertyChangedWrapper(app, OnApplicationPropertyChanged))
{
	// other code....
}
            
void OnApplicationPropertyChanged(object sender, PropertyChangedEventArgs e)
{
	if (e.PropertyName == "IsVisible")
	{
		Vsa.Application app = sender as Vsa.Application;
		if (app.IsVisible == false)
		{
			// other code...
		}
	}
}

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also