EdgeSharp icon indicating copy to clipboard operation
EdgeSharp copied to clipboard

How to customize the size of the main form

Open Yiend opened this issue 3 years ago • 2 comments
trafficstars

1、How to customize the size of the main form? 2、How can I set the main form to have no borders? 3、How to set the main form icon? 4、How to customize the main form Minimize Maximize and Close?

Yiend avatar Mar 11 '22 10:03 Yiend

@tenove sorry I have not had the bandwidth to complete the wiki, but the samples should help with most of the questions.

I believe you are referring to WinForms.

1、How to customize the size of the main form? The window configuration is done here -WindowOptions - If what you need is not covered here, then you can use WinForms documentation to make those changes.

2、How can I set the main form to have no borders?

  • There is borderless option -https://github.com/webview2/EdgeSharp.Samples/blob/60a862ae703720b2ccfbe9f877276b2cb75252f4/win-32/EdgeSharp.Sample/SampleConfig.cs#L30

3、How to set the main form icon?

  • The sample did that already - https://github.com/webview2/EdgeSharp.Samples/blob/60a862ae703720b2ccfbe9f877276b2cb75252f4/winform/EdgeSharp.WinForms.Sample/EdgeSharp.WinForms.Sample.csproj#L8

4、How to customize the main form Minimize Maximize and Close?

  • If you mean for borderless, this is something you may have to look into. This maybe helpful - https://github.com/chromelyapps/Chromely/issues/276

mattkol avatar Mar 13 '22 12:03 mattkol

Oh, I'm very sorry, I didn't express it clearly, what I want to say is angular-react-vue

Yiend avatar Mar 14 '22 00:03 Yiend