mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Custom Frameless Window With (min,max,close buttons) #747
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mALIk-sHAHId on GitHub (Jan 3, 2022).
I have Converted My Asp.Net Core / Blazor Application To Electron App.
But I NeedFrameless Windows So That I can Customize My Application Window
I am Using this Code To Make It Frameless
Now I have create a Custom Html file here
But I am not understanding how to add functionality to these buttons please help me solve my problem.
@danatcofo commented on GitHub (Jan 3, 2022):
There are js methods you can call to do this. Grab the reference to the BrowserWindow representing the window and call maximize or minimize etc...
https://www.electronjs.org/docs/v14-x-y/api/browser-window
@danatcofo commented on GitHub (Jan 3, 2022):
Make sure remote is enabled in the browser window options on window creation in your dotnet code then...
inside a js file referenced by the html of the window...
@mALIk-sHAHId commented on GitHub (Jan 8, 2022):
Use Latest Version of ElectronNet From Here Or From Nuget Then
Then In Your Layout.Cshtml Create Three Button
And Use JavaScript Code
Build the App ie It.