public static UIViewSettings GetForWindow(IntPtr hWnd)
        {
            IUIViewSettingsInterop uIViewSettingsInterop = (IUIViewSettingsInterop)InteropHelper.GetActivationFactory <IUIViewSettingsInterop>(typeof(UIViewSettings));
            Guid guid = typeof(UIViewSettings).GUID;

            return(uIViewSettingsInterop.GetForWindow(hWnd, ref guid));
        }
Example #2
0
        public static UIViewSettings GetForWindow(IntPtr hwnd)
        {
            var iid = GuidGenerator.CreateIID(typeof(IUIViewSettings));

            return((UIViewSettings)uIViewSettingsInterop.GetForWindow(hwnd, iid));
        }