Show / Hide Table of Contents

Class VncView

Displays a remote screen using the RFB protocol.

Inheritance
System.Object
RfbRenderTarget
VncView
Implements
IRenderTarget
IDisposable
IOutputHandler
Inherited Members
RfbRenderTarget.GrabFramebufferReference(Size, IImmutableSet<Screen>)
RfbRenderTarget.Render(DrawingContext)
RfbRenderTarget.MeasureOverride(Avalonia.Size)
RfbRenderTarget.Dispose()
RfbRenderTarget.Dispose(Boolean)
Namespace: MarcusW.VncClient.Avalonia
Assembly: MarcusW.VncClient.Avalonia.dll
Syntax
public class VncView : RfbRenderTarget, IRenderTarget, IDisposable, IOutputHandler

Constructors

| Improve this Doc View Source

VncView()

Declaration
public VncView()

Fields

| Improve this Doc View Source

AutoResizeRemoteProperty

Defines the AutoResizeRemote property.

Declaration
public static readonly DirectProperty<VncView, bool> AutoResizeRemoteProperty
Field Value
Type Description
DirectProperty<VncView, System.Boolean>
| Improve this Doc View Source

ConnectionProperty

Defines the Connection property.

Declaration
public static readonly DirectProperty<VncView, RfbConnection> ConnectionProperty
Field Value
Type Description
DirectProperty<VncView, RfbConnection>
| Improve this Doc View Source

OptimalSizeProperty

Defines the OptimalSize property.

Declaration
public static readonly DirectProperty<VncView, Avalonia.Size?> OptimalSizeProperty
Field Value
Type Description
DirectProperty<VncView, System.Nullable<Avalonia.Size>>

Properties

| Improve this Doc View Source

AutoResizeRemote

Gets or sets whether the remote view should be automatically resized to fit the current VncView's size (or the OptimalSize).

Declaration
public bool AutoResizeRemote { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Connection

Gets or sets the connection that is shown in this VNC view.

Declaration
public RfbConnection Connection { get; set; }
Property Value
Type Description
RfbConnection
Remarks

Interactions with this VncView will be forwarded to the selected RfbConnection. In case this property is set to null, no connection will be attached to this view.

| Improve this Doc View Source

OptimalSize

Gets or sets the optimal size value that is used to resize the remote view to make it fit into this optimal size. If set to null, the size of this VncView itself is used as the optimal size for the remote view.

Declaration
public Avalonia.Size? OptimalSize { get; set; }
Property Value
Type Description
System.Nullable<Avalonia.Size>
Remarks

This property is useful when this VncView is contained in e.g. a . In this case the view would never shrink when this property isn't used.

Methods

| Improve this Doc View Source

HandleServerClipboardUpdate(String)

Declaration
public virtual void HandleServerClipboardUpdate(string text)
Parameters
Type Name Description
System.String text
| Improve this Doc View Source

OnKeyDown(KeyEventArgs)

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type Name Description
KeyEventArgs e
| Improve this Doc View Source

OnKeyUp(KeyEventArgs)

Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
Type Name Description
KeyEventArgs e
| Improve this Doc View Source

OnLostFocus(RoutedEventArgs)

Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
Type Name Description
RoutedEventArgs e
| Improve this Doc View Source

OnPointerMoved(PointerEventArgs)

Declaration
protected override void OnPointerMoved(PointerEventArgs e)
Parameters
Type Name Description
PointerEventArgs e
| Improve this Doc View Source

OnPointerPressed(PointerPressedEventArgs)

Declaration
protected override void OnPointerPressed(PointerPressedEventArgs e)
Parameters
Type Name Description
PointerPressedEventArgs e
| Improve this Doc View Source

OnPointerReleased(PointerReleasedEventArgs)

Declaration
protected override void OnPointerReleased(PointerReleasedEventArgs e)
Parameters
Type Name Description
PointerReleasedEventArgs e
| Improve this Doc View Source

OnPointerWheelChanged(PointerWheelEventArgs)

Declaration
protected override void OnPointerWheelChanged(PointerWheelEventArgs e)
Parameters
Type Name Description
PointerWheelEventArgs e
| Improve this Doc View Source

OnTextInput(TextInputEventArgs)

Declaration
protected override void OnTextInput(TextInputEventArgs e)
Parameters
Type Name Description
TextInputEventArgs e
| Improve this Doc View Source

RingBell()

Handles when the server rings the bell.

Declaration
public virtual void RingBell()

Implements

IRenderTarget
IDisposable
IOutputHandler
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX