Example #1
0
 /// <summary>
 /// Renders the PlotView to xaml.
 /// </summary>
 /// <returns>The xaml.</returns>
 public string ToXaml()
 {
     return(XamlExporter.ExportToString(this.ActualModel, this.ActualWidth, this.ActualHeight));
 }
Example #2
0
 /// <summary>
 /// Renders the PlotView to xaml.
 /// </summary>
 /// <returns>The xaml.</returns>
 public string ToXaml()
 {
     return(XamlExporter.ExportToString(this.ActualModel, this.ActualWidth, this.ActualHeight, this.Background.ToOxyColor()));
 }
Example #3
0
        /// <summary>
        /// Renders the PlotView to xaml.
        /// </summary>
        /// <returns>The xaml.</returns>
        public string ToXaml()
        {
            var background = this.ActualModel.Background.IsVisible() ? this.ActualModel.Background : this.Background.ToOxyColor();

            return(XamlExporter.ExportToString(this.ActualModel, this.ActualWidth, this.ActualHeight, background));
        }