/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
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- using Microsoft.Research.DynamicDataDisplay;
-
- namespace InvertedYAxis
- {
- /// <summary>
- /// Interaction logic for Window1.xaml
- /// </summary>
- public partial class Window1 : Window
- {
- public Window1()
- {
- InitializeComponent();
-
- plotter.DataTransform = new LambdaDataTransform(p => new Point(p.X, -p.Y), p => new Point(p.X, -p.Y));
- }
- }
- }