예제 #1
0
        private Transform _initialTransform  = null;             // render transform for _controlled at start (or restart) of interaction

        /// <summary>
        ///     Construct an Interactor, given the photo-display on which the interaction takes place, the the
        ///     mouse-click event that caused the interactor to be created.
        /// </summary>
        public Interactor(PhotoDisplay pd, System.Windows.Input.MouseButtonEventArgs e)
        {
            _photoDisplay = pd;
            _controlled   = (FrameworkElement)e.OriginalSource;
            _c1           = newContact(e);
            initializeInteraction();
        }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     Content = new PhotoDisplay("none");
     Title   = "Photo Sorter";
     Show();
 }