コード例 #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, this.Background.ToOxyColor()));
 }
コード例 #2
0
 /// <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());
 }
コード例 #3
0
 /// <summary>
 /// Renders the PlotView to xaml.
 /// </summary>
 /// <returns>The xaml.</returns>
 public string ToXaml()
 {
     return(XamlExporter.ExportToString(this.ActualModel, this.ActualWidth, this.ActualHeight));
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
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));
        }
コード例 #6
0
        /// <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);
        }