Пример #1
0
        public EventManagerClickSample()
        {
            InitializeComponent();

            Setup3DObjects();

            // EventManager3D checks the hit 3D object only on mouse events.
            // But when camera is changed, this can also change the 3D object that is behind the mouse.
            // To support that can subscribe to CameraChanged and in event handler call UpdateHitObjects method.
            Camera1.CameraChanged += delegate(object sender, CameraChangedRoutedEventArgs args)
            {
                _eventManager3D.UpdateHitObjects();
            };
        }