public static SpatialInteractionManager GetForWindow(IntPtr hWnd)
        {
            Guid iid = typeof(SpatialInteractionManager).GUID;
            ISpatialInteractionManagerInterop factory = InteropHelper.GetActivationFactory <ISpatialInteractionManagerInterop>(typeof(SpatialInteractionManager));

            return(factory.GetForWindow(hWnd, ref iid));
        }
        public static SpatialInteractionManager GetForWindow(IntPtr hWnd)
        {
            ISpatialInteractionManagerInterop spatialInteractionManagerInterop = (ISpatialInteractionManagerInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(SpatialInteractionManager));
            Guid guid = typeof(SpatialInteractionManager).GUID;

            return(spatialInteractionManagerInterop.GetForWindow(hWnd, ref guid));
        }
Пример #3
0
        public static SpatialInteractionManager GetForWindow(IntPtr window)
        {
            Guid iid = GuidGenerator.CreateIID(typeof(ISpatialInteractionManager));

            return((SpatialInteractionManager)spatialInteractionManagerInterop.GetForWindow(window, iid));
        }