PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/DevSamples/InvertedYAxis/Window1.xaml.cs

#
C# | 30 lines | 25 code | 2 blank | 3 comment | 0 complexity | 7befd47dd19f8d0c4e6d4efb5f3352fa MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. using Microsoft.Research.DynamicDataDisplay;
  15. namespace InvertedYAxis
  16. {
  17. /// <summary>
  18. /// Interaction logic for Window1.xaml
  19. /// </summary>
  20. public partial class Window1 : Window
  21. {
  22. public Window1()
  23. {
  24. InitializeComponent();
  25. plotter.DataTransform = new LambdaDataTransform(p => new Point(p.X, -p.Y), p => new Point(p.X, -p.Y));
  26. }
  27. }
  28. }