Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Window Flags and Custom Window Creation Styles

softoille@gmail.com edited this page Nov 29, 2019 · 1 revision

Window Flags and Custom Window Creation Styles (Only Windows)

  • Different Winapi window creation and placement flags can be set in configuration.
  • Also custom style for Winapi can be set.

Flags

var config = ChromelyConfiguration
               .Create()
                .....
               .WithHostFlag(HostFlagKey.CenterScreen, true | false - default true)
               .WithHostFlag(HostFlagKey.Frameless, true | false -  default false)
               .WithHostFlag(HostFlagKey.KioskMode, true | false - default false)
               .WithHostFlag(HostFlagKey.NoResize,  true | false - default false)
               .WithHostFlag(HostFlagKey.NoMinMaxBoxes,  true | false - default false)
                .....

Styles

            var windowStyle = new WindowCreationStyle();
            windowStyle.WindowStyles = WindowStyles.WS_OVERLAPPEDWINDOW | WindowStyles.WS_CLIPCHILDREN | 
            WindowStyles.WS_CLIPSIBLINGS;
            windowStyle.WindowExStyles = WindowExStyles.WS_EX_APPWINDOW | WindowExStyles.WS_EX_WINDOWEDGE;
               
var config = ChromelyConfiguration
               .Create()
                .....
               .WithHostCustomStyle(windowStyle)
                .....

On window's creation a custom style will overwrite flags.

Clone this wiki locally