Example #1
0
 /// <summary>
 ///   Copies the chart to the clipboard
 /// </summary>
 /// <param name="element"></param>
 /// <param name="width"></param>
 /// <param name="height"></param>
 protected void CopyChartToClipboard(FrameworkElement element, double width, double height)
 {
     try
     {
         ChartUtilities.CopyChartToClipboard(plotToCopy, xyLineChart, width, height);
     }
     catch
     {
         // the above might throw a security exception is used in an xbap
         Trace.WriteLine("Error copying to clipboard");
     }
 }