public static HolographicSpace CreateForWindow(IntPtr hWnd)
        {
            IHolographicSpaceInterop holographicSpaceInterop = (IHolographicSpaceInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(HolographicSpace));
            Guid guid = typeof(HolographicSpace).GUID;

            return(holographicSpaceInterop.CreateForWindow(hWnd, ref guid));
        }
Exemplo n.º 2
0
        public static HolographicSpace CreateForWindow(IntPtr hWnd)
        {
            Guid iid = typeof(HolographicSpace).GUID;
            IHolographicSpaceInterop factory = InteropHelper.GetActivationFactory <IHolographicSpaceInterop>(typeof(HolographicSpace));

            factory.CreateForWindow(hWnd, ref iid, out var result);
            return(InteropHelper.CastWinRTObject <HolographicSpace>(result));
        }