AvaloniaUI - how to change the 'style' of the window (borderless, toolbox, etc)

4.1k Views Asked by At

I'm trying out Avalonia UI and I need a ToolWindow. I tried different approaches but the wpf equivalent WindowStyle seems not supported. The only thing I was able to do was to use 'CanResize', but even that allows resizing via the max button ... ... 'CanResize' implies that at least no max button should be present, but I can imagine that reasons are in place to argue if the min button should be hidden as well in this scenario.

Am I overlooking something or is this not implemented yet ?

My next thing on the todo-list is a Splash screen (borderless), this falls under the same umbrella. Possible yet ?

1

There are 1 best solutions below

6
On BEST ANSWER

A borderless window is easily possible in v. 0.10, by setting these properties on the window:

ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaChromeHints="NoChrome"
ExtendClientAreaTitleBarHeightHint="-1"

For a tool Window you could use a borderless and frameless window and then implement the buttons yourself. You can look for inspiration over here.