RemoteUserControl Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abstract class from which Remote UI controls should be derived.
public abstract class RemoteUserControl : IDisposable, Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteProxiedUserControl2, Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteWpfUserControl
type RemoteUserControl = class
interface IRemoteWpfUserControl
interface IRemoteProxiedUserControl
interface IRemoteUserControl
interface IDisposable
interface IRemoteProxiedUserControl2
Public MustInherit Class RemoteUserControl
Implements IDisposable, IRemoteProxiedUserControl2, IRemoteWpfUserControl
- Inheritance
-
RemoteUserControl
- Implements
Remarks
This class automatically retrieves the xaml for the control from an embedded resource of the same name. E.g., a class named "Foo" which extends RemoteUserControl and is defined in its project default namespace, would automatically retrieve its xaml definition fom an embedded resource named "Foo.xaml" defined in the same project.
Constructors
RemoteUserControl(Object, SynchronizationContext) |
Initializes a new instance of the RemoteUserControl class. |
RemoteUserControl(Object, VisualStudioExtensibility, SynchronizationContext, TraceSource) |
Initializes a new instance of the RemoteUserControl class. |
RemoteUserControl(Object) |
Initializes a new instance of the RemoteUserControl class. |
Properties
DataContext |
Gets the data context of the remote control. |
ResourceDictionaries |
Gets a collection of WPF resource dictionaries as xaml strings. These dictionaries are merged into this control's resources. Strings must be added to this collection during the remote user control's construction. |
Methods
ControlLoadedAsync(CancellationToken) | This method is invoked when the control is first loaded. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose(Boolean) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
GetXamlAsync(CancellationToken) |
This method retrieves the xaml describing the data template of the control. |