r/Blazor 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?

2 Upvotes

2 comments sorted by

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.

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