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);
}
}