Version

LoadDashboard Method

Loads a dashboard from the specified stream, asynchronous method that returns the loaded dashboard.
Syntax
'Declaration
 
Public Shared Function LoadDashboard( _
   ByVal data As Stream _
) As Task(Of RVDashboard)
public static Task<RVDashboard> LoadDashboard( 
   Stream data
)

Parameters

data
The stream with rdash file format

Return Value

The dashboard object
Example
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        this.Loaded += MainWindow_Loaded;
    }
            
    private async void MainWindow_Loaded(object sender, RoutedEventArgs e)
    {
        var path = @"..\..\Sales.rdash";
            
        var revealView = new RevealView();
        using (var fileStream = File.OpenRead(path))
        {
            var dashboard = await RevealUtility.LoadDashboard(fileStream);
            var settings = new RevealSettings(dashboard);
            revealView.Settings = settings;
        }
            
        Grid grid = this.Content as Grid;
        grid.Children.Add(revealView);
    }
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also