protected override void OnCreated(IntPtr hWnd)
        {
            base.OnCreated(hWnd);

            _options.WindowFrameless = true;
            _framelessInfo           = new FramelessInfo(hWnd);
            _framelessOption         = _options.FramelessOption;
            _dwmFramelessController  = new DwmFramelessController(_framelessInfo, _framelessOption, HandleSizeChanged);

            _dwmFramelessController.HandleCompositionchanged();
            _dwmFramelessController.HandleThemechanged();
        }
Example #2
0
        protected override void OnCreated(IntPtr hWnd)
        {
            base.OnCreated(hWnd);

            if (_options.Fullscreen || _options.KioskMode)
            {
                throw new NotSupportedException("Fullscreen/Kiok mode is not supported in ChromelyFramelessApp. Please use ChromelyBasicApp instead.");
            }

            _options.WindowFrameless = true;
            _framelessInfo           = new FramelessInfo(hWnd);
            _framelessOption         = _options.FramelessOption;
            _dwmFramelessController  = new DwmFramelessController(_framelessInfo, _framelessOption, HandleSizeChanged);

            _dwmFramelessController.HandleCompositionchanged();
            _dwmFramelessController.HandleThemechanged();
        }