ClassRadDiagramThumbnail
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
RadDiagramThumbnail()
Initializes a new instance of the RadDiagramThumbnail class.
Declaration
public RadDiagramThumbnail()
Fields
DiagramProperty
Identifies the Diagram dependency property.
Declaration
public static readonly DependencyProperty DiagramProperty
Field Value
DependencyProperty
ImageSourceProperty
Identifies the ImageSource dependency property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
DependencyProperty
IsAutoRefreshEnabledProperty
Identifies the IsAutoRefreshEnabled dependency property.
Declaration
public static readonly DependencyProperty IsAutoRefreshEnabledProperty
Field Value
DependencyProperty
ViewportRectProperty
Identifies the ViewportRect dependency property.
Declaration
public static readonly DependencyProperty ViewportRectProperty
Field Value
DependencyProperty
ViewportStyleProperty
Identifies the ViewportStyle dependency property.
Declaration
public static readonly DependencyProperty ViewportStyleProperty
Field Value
DependencyProperty
Properties
Diagram
Gets or sets the diagram.
Declaration
public RadDiagram Diagram { get; set; }
Property Value
The diagram.
ImageSource
Gets or sets the background brush.
Declaration
public ImageSource ImageSource { get; }
Property Value
ImageSource
IsAutoRefreshEnabled
Gets or sets the isAutoRefreshEnabled property.
ViewportRect
Gets or sets the viewport rectangle.
Declaration
public Rect ViewportRect { get; }
Property Value
Rect
ViewportStyle
Gets or sets the viewport border style.
Declaration
public Style ViewportStyle { get; set; }
Property Value
Style
Methods
ClipFrameworkElement(FrameworkElement)
Clips the framework element.
Declaration
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
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
protected virtual Rect GetImageRectangle()
Returns
Rect
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnDiagramChanged(RadDiagram, RadDiagram)
Called when the diagram property changes.
Declaration
protected virtual void OnDiagramChanged(RadDiagram oldDiagram, RadDiagram newDiagram)
Parameters
oldDiagram
newDiagram
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
OnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
MouseEventArgs
OnMouseWheel(MouseWheelEventArgs)
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
e
MouseWheelEventArgs
RefreshThumbnail()
Refreshes the RadDiagramThumbnail.
Declaration
public virtual void RefreshThumbnail()