Share via


IRemoteWpfUserControl Interface

Definition

A Remote UI user control based on WPF.

[StreamJsonRpc.RpcMarshalable]
public interface IRemoteWpfUserControl : IDisposable, Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl
[<StreamJsonRpc.RpcMarshalable>]
type IRemoteWpfUserControl = interface
    interface IRemoteProxiedUserControl
    interface IRemoteUserControl
    interface IDisposable
Public Interface IRemoteWpfUserControl
Implements IDisposable, IRemoteProxiedUserControl
Attributes
StreamJsonRpc.RpcMarshalableAttribute
Implements

Methods

ControlLoadedAsync(CancellationToken)

This method is invoked when the control is first loaded.

GetObjectAsync(ObjectId, CancellationToken)

This method allows querying for the value of a uniquely identifiable object that is part of the DataContext of the control. The value of the object will be sent to the client using ObjectValueNotificationAsync(MessagePackFragment, CancellationToken).

(Inherited from IRemoteProxiedUserControl)
InitializeAsync(IRemoteProxiedUserControlClient, CancellationToken)

This method retrieves the xaml describing the data template of the control and the corresponding data context.

InvokeAsync(ObjectId, MessagePackFragment, CancellationToken)

This method allows invoking ExecuteAsync on an async command that is part of the DataContext of the control.

(Inherited from IRemoteProxiedUserControl)
SetCollectionEntryAsync(ObjectId, Int32, MessagePackFragment, Nullable<ObjectVersion>, CancellationToken)

This method updates a property of an IList that is part of the DataContext of the control.

(Inherited from IRemoteProxiedUserControl)
SetObjectPropertyAsync(ObjectId, String, MessagePackFragment, CancellationToken)

This method updates a property of an object that is part of the DataContext of the control.

(Inherited from IRemoteProxiedUserControl)

Applies to