RadDiagramThumbnail
Represents the RadDiagramThumbnail.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Extensions
Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax:
[TelerikToolboxCategory("Diagram")]
public class RadDiagramThumbnail : Control
Inheritance: objectRadDiagramThumbnail
Constructors
Initializes a new instance of the RadDiagramThumbnail class.
public RadDiagramThumbnail()
Fields
DiagramProperty
DependencyProperty
Identifies the Diagram dependency property.
public static readonly DependencyProperty DiagramProperty
ImageSourceProperty
DependencyProperty
Identifies the ImageSource dependency property.
public static readonly DependencyProperty ImageSourceProperty
IsAutoRefreshEnabledProperty
DependencyProperty
Identifies the IsAutoRefreshEnabled dependency property.
public static readonly DependencyProperty IsAutoRefreshEnabledProperty
ViewportRectProperty
DependencyProperty
Identifies the ViewportRect dependency property.
public static readonly DependencyProperty ViewportRectProperty
ViewportStyleProperty
DependencyProperty
Identifies the ViewportStyle dependency property.
public static readonly DependencyProperty ViewportStyleProperty
Properties
Gets or sets the diagram.
public RadDiagram Diagram { get; set; }
The diagram.
ImageSource
ImageSource
Gets or sets the background brush.
public ImageSource ImageSource { get; }
Gets or sets the isAutoRefreshEnabled property.
public bool IsAutoRefreshEnabled { get; set; }
ViewportRect
Rect
Gets or sets the viewport rectangle.
public Rect ViewportRect { get; }
ViewportStyle
Style
Gets or sets the viewport border style.
public Style ViewportStyle { get; set; }
Methods
Clips the framework element.
protected virtual void ClipFrameworkElement(FrameworkElement frameworkElement)
The framework element.
CreateImageSource(Rect, Size)
ImageSource
Gets the image's source that will be displayed.
protected virtual ImageSource CreateImageSource(Rect enclosingBounds, Size returnImageSize)
The image's enclosing bounds.
returnImageSizeSizeThe return size of image.
Returns:ImageSource
Gets the image rectangle.
protected virtual Rect GetImageRectangle()
Rect
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Called when the diagram property changes.
protected virtual void OnDiagramChanged(RadDiagram oldDiagram, RadDiagram newDiagram)
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
protected override void OnMouseMove(MouseEventArgs e)
protected override void OnMouseWheel(MouseWheelEventArgs e)
Refreshes the RadDiagramThumbnail.
public virtual void RefreshThumbnail()