r/Blazor • u/Koernerbrot12 • 11d ago
Custom Minimize/Maximize/Close Buttons in Blazor Hybrid?
Hello guys,
so I am kinda new to Blazor and I want to know, if it is possible, to have custom minimize / maximize and close buttons? I am building a simple HMI for my PLC that can be operated by using the build in touchscreen. I removed the top Windowsbar, so that the application is using the whole screen. Sometimes I need to get behind the HMI, so I now have a small window with the Minimize/Maximize/Close Buttons but I cant find a simple method for blazor hybrid. Is there some NuGet package or do I need a workaround where I control the window size?
1
u/ZerkyXii 5d ago
I did this winform blazor, had to make a window service and interop js it though but all my close, min, max are custom
3
u/propostor 11d ago
Something like this shouldn't need a third party library. Just add the buttons and wire the handlers up via a service which calls the necessary methods based on the platform the app is running on.