Class RadDiagramThumbnail
Represents the RadDiagramThumbnail.
Inheritance
Namespace: Telerik.Windows.Controls.Diagrams.Extensions
Assembly: Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax
[TelerikToolboxCategory("Diagram")]
public class RadDiagramThumbnail : Control
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
System.Windows.DependencyProperty
|
ImageSourceProperty
Identifies the ImageSource dependency property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
System.Windows.DependencyProperty
|
IsAutoRefreshEnabledProperty
Identifies the IsAutoRefreshEnabled dependency property.
Declaration
public static readonly DependencyProperty IsAutoRefreshEnabledProperty
Field Value
System.Windows.DependencyProperty
|
ViewportRectProperty
Identifies the ViewportRect dependency property.
Declaration
public static readonly DependencyProperty ViewportRectProperty
Field Value
System.Windows.DependencyProperty
|
ViewportStyleProperty
Identifies the ViewportStyle dependency property.
Declaration
public static readonly DependencyProperty ViewportStyleProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Diagram
Gets or sets the diagram.
Declaration
public RadDiagram Diagram { get; set; }
Property Value
RadDiagram
The diagram. |
ImageSource
Gets or sets the background brush.
Declaration
public ImageSource ImageSource { get; }
Property Value
System.Windows.Media.ImageSource
|
IsAutoRefreshEnabled
Gets or sets the isAutoRefreshEnabled property.
Declaration
public bool IsAutoRefreshEnabled { get; set; }
Property Value
System.Boolean
|
ViewportRect
Gets or sets the viewport rectangle.
Declaration
public Rect ViewportRect { get; }
Property Value
System.Windows.Rect
|
ViewportStyle
Gets or sets the viewport border style.
Declaration
public Style ViewportStyle { get; set; }
Property Value
System.Windows.Style
|
Zoom
Gets the zoom.
Declaration
public double Zoom { get; }
Property Value
System.Double
The zoom. |
Methods
ClipFrameworkElement(FrameworkElement)
Clips the framework element.
Declaration
protected virtual void ClipFrameworkElement(FrameworkElement frameworkElement)
Parameters
System.Windows.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
System.Windows.Rect
enclosingBounds
The image's enclosing bounds. |
System.Windows.Size
returnImageSize
The return size of image. |
Returns
System.Windows.Media.ImageSource
|
GetImageRectangle()
Gets the image rectangle.
Declaration
protected virtual Rect GetImageRectangle()
Returns
System.Windows.Rect
|
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnDiagramChanged(RadDiagram, RadDiagram)
Called when the diagram property changes.
Declaration
protected virtual void OnDiagramChanged(RadDiagram oldDiagram, RadDiagram newDiagram)
Parameters
RadDiagram
oldDiagram
|
RadDiagram
newDiagram
|
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
|
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
|
OnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
|
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
|
OnMouseWheel(MouseWheelEventArgs)
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
System.Windows.Input.MouseWheelEventArgs
e
|
RefreshThumbnail()
Refreshes the RadDiagramThumbnail.
Declaration
public virtual void RefreshThumbnail()