예제 #1
0
        public Form1()
        {
            InitializeComponent();

            SetUpWpf3D();
            Setup3DObjects();

            // HACK HACK HACK:
            // To pass mouse wheel events to WPF controls, we need to manually pass the mouse wheel event to WPF
            // The following class does that for us:
            MouseWheelMessageFilter.RegisterMouseWheelHandling(_rootGrid);
        }
 public static void RegisterMouseWheelHandling(FrameworkElement element)
 {
     var mouseWheelMessageFilter = new MouseWheelMessageFilter(element);
 }