/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
1using System; 2using System.Collections.Generic; 3using System.Linq; 4using System.Text; 5using System.Windows; 6using System.Windows.Controls; 7using System.Windows.Data; 8using System.Windows.Documents; 9using System.Windows.Input; 10using System.Windows.Media; 11using System.Windows.Media.Imaging; 12using System.Windows.Navigation; 13using System.Windows.Shapes; 14using Microsoft.Research.DynamicDataDisplay; 15 16namespace InvertedYAxis 17{ 18 /// <summary> 19 /// Interaction logic for Window1.xaml 20 /// </summary> 21 public partial class Window1 : Window 22 { 23 public Window1() 24 { 25 InitializeComponent(); 26 27 plotter.DataTransform = new LambdaDataTransform(p => new Point(p.X, -p.Y), p => new Point(p.X, -p.Y)); 28 } 29 } 30}