New to Telerik UI for WPFStart a free 30-day trial

File management utility geared towards RadDiagram.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Extensions

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

Syntax:

C#
public class FileManager

Inheritance: objectFileManager

Constructors

Initializes a new instance of the FileManager class.

C#
public FileManager(RadDiagram diagram)
Parameters:diagramRadDiagram

The diagram.

Properties

Gets or sets the current file path.

C#
public string CurrentFile { get; set; }
Property Value:

The current file.

Methods

Loads the diagram from file.

C#
public void LoadFromFile(FileLocation location = FileLocation.Disk, Action previewActionOnLoad = null)
Parameters:locationFileLocation

Specifies the type location of the file to open - file system or isolated storage.

previewActionOnLoadAction

Action to be executed first on OK button click of the

Saves the diagram to file.

C#
public void SaveToFile(FileLocation location = FileLocation.Disk)
Parameters:locationFileLocation

The location.