/// <summary> /// Saves the PlotView as xaml. /// </summary> /// <param name="fileName">Name of the file.</param> public void SaveXaml(string fileName) { XamlExporter.Export(this.ActualModel, fileName, this.ActualWidth, this.ActualHeight); }
/// <summary> /// Saves the PlotView as xaml. /// </summary> /// <param name="fileName">Name of the file.</param> public void SaveXaml(string fileName) { XamlExporter.Export(this.ActualModel, fileName, this.ActualWidth, this.ActualHeight, this.Background.ToOxyColor()); }
/// <summary> /// Saves the PlotView as xaml. /// </summary> /// <param name="fileName">Name of the file.</param> public void SaveXaml(string fileName) { var background = this.ActualModel.Background.IsVisible() ? this.ActualModel.Background : this.Background.ToOxyColor(); XamlExporter.Export(this.ActualModel, fileName, this.ActualWidth, this.ActualHeight, background); }