Class
RadDiagramThumbnail

Represents the RadDiagramThumbnail.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Extensions

Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Diagram")]
public class RadDiagramThumbnail : Control

Inheritance: objectRadDiagramThumbnail

Constructors

RadDiagramThumbnail()

Initializes a new instance of the RadDiagramThumbnail class.

Declaration

cs-api-definition
public RadDiagramThumbnail()

Fields

DiagramProperty

Identifies the Diagram dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DiagramProperty

Field Value

DependencyProperty

ImageSourceProperty

Identifies the ImageSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ImageSourceProperty

Field Value

DependencyProperty

IsAutoRefreshEnabledProperty

Identifies the IsAutoRefreshEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsAutoRefreshEnabledProperty

Field Value

DependencyProperty

ViewportRectProperty

Identifies the ViewportRect dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ViewportRectProperty

Field Value

DependencyProperty

ViewportStyleProperty

Identifies the ViewportStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ViewportStyleProperty

Field Value

DependencyProperty

Properties

Diagram

Gets or sets the diagram.

Declaration

cs-api-definition
public RadDiagram Diagram { get; set; }

Property Value

RadDiagram

The diagram.

ImageSource

Gets or sets the background brush.

Declaration

cs-api-definition
public ImageSource ImageSource { get; }

Property Value

ImageSource

IsAutoRefreshEnabled

Gets or sets the isAutoRefreshEnabled property.

Declaration

cs-api-definition
public bool IsAutoRefreshEnabled { get; set; }

Property Value

bool

ViewportRect

Gets or sets the viewport rectangle.

Declaration

cs-api-definition
public Rect ViewportRect { get; }

Property Value

Rect

ViewportStyle

Gets or sets the viewport border style.

Declaration

cs-api-definition
public Style ViewportStyle { get; set; }

Property Value

Style

Zoom

Gets the zoom.

Declaration

cs-api-definition
public double Zoom { get; }

Property Value

double

The zoom.

Methods

ClipFrameworkElement(FrameworkElement)

Clips the framework element.

Declaration

cs-api-definition
protected virtual void ClipFrameworkElement(FrameworkElement frameworkElement)

Parameters

frameworkElement

FrameworkElement

The framework element.

CreateImageSource(Rect, Size)

Gets the image's source that will be displayed.

Declaration

cs-api-definition
protected virtual ImageSource CreateImageSource(Rect enclosingBounds, Size returnImageSize)

Parameters

enclosingBounds

Rect

The image's enclosing bounds.

returnImageSize

Size

The return size of image.

Returns

ImageSource

GetImageRectangle()

Gets the image rectangle.

Declaration

cs-api-definition
protected virtual Rect GetImageRectangle()

Returns

Rect

OnApplyTemplate()

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnDiagramChanged(RadDiagram, RadDiagram)

Called when the diagram property changes.

Declaration

cs-api-definition
protected virtual void OnDiagramChanged(RadDiagram oldDiagram, RadDiagram newDiagram)

Parameters

oldDiagram

RadDiagram

newDiagram

RadDiagram

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

OnMouseLeftButtonDown(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseLeftButtonUp(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseMove(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseWheel(MouseWheelEventArgs)

Declaration

cs-api-definition
protected override void OnMouseWheel(MouseWheelEventArgs e)

Parameters

e

MouseWheelEventArgs

RefreshThumbnail()

Refreshes the RadDiagramThumbnail.

Declaration

cs-api-definition
public virtual void RefreshThumbnail()