Material.WindowStyle
0.12.0
Additional Details
ControlTheme variant was not fully loaded, Please use 0.12.1 or any prerelease with 0.12.1 or newer version instead!!!
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Material.WindowStyle --version 0.12.0
NuGet\Install-Package Material.WindowStyle -Version 0.12.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Material.WindowStyle" Version="0.12.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Material.WindowStyle" Version="0.12.0" />
<PackageReference Include="Material.WindowStyle" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Material.WindowStyle --version 0.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Material.WindowStyle, 0.12.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Material.WindowStyle&version=0.12.0
#tool nuget:?package=Material.WindowStyle&version=0.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Welcome to Material.WindowStyle Demo!
Getting started
To use this window style in your Avalonia Application, please follow below steps!
Requirements:
- AvaloniaUI framework version 11.0.0 or newer.
- (optional) Material.Avalonia any version that supports AvaloniaUI 11.0.0 or above <br/>info: you can use this style without Material.Avalonia by adding brush resources as like: <a href="#change-colours-of-title-bar">Change colours of title bar</a>
Steps:
- Update your Avalonia UI framework to latest. Make sure your framework version is newer or equal 11.0.0.
- Install Material.WindowStyle package from NuGet. The major and minor package version should be 0.11. Build and revision version should be as newer as possible so you wont miss updates.
- Add
<StyleInclude Source="avares://Material.WindowStyle/WindowStyleInclude.axaml"/>
to your styles of Application. It should be after theme styles and before your custom styles. - (Optional, it should be work automatically since 2025.03.08 commit) Add
ExtendClientAreaToDecorationsHint="True"
attributes to yourWindow
view:
<Window
ExtendClientAreaToDecorationsHint="True">
</Window>
- (Optional) You may want apply fix for Windows Platform. This fix used for correcting margin while the Window is maximized. Windows OS could overfill the window.
To apply this fix, just add
windows-platform-fix
to yourClasses
property of window. This can be done automatically or manually, depending how you create your avalonia application.
Bonus:
Change colours of title bar
Add this style to your application xaml
<Style Selector="chrome|MaterialTitleBar">
<Setter Property="Background" Value="#4C4C4C"/>
<Setter Property="Foreground" Value="White"/>
</Style>
alternative way (static resource):
<Application.Resources>
<SolidColorBrush x:Key="MaterialDesignPaper">#4C4C4C</SolidColorBrush>
<SolidColorBrush x:Key="MaterialDesignBody">White</SolidColorBrush>
</Application.Resources>
This will set material title bar colours to all windows by default. Background will be gray, and the foreground will be white. And also, it will make this library works without Material.Avalonia.
TODO:
- complete README (additional info about custom window title buttons, some unfixable behaviours (known issues) and advanced theming support)
- better demo
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.12.1.33-alpha | 124 | 3/30/2025 | |
0.12.1 | 130 | 3/30/2025 | |
0.12.0.32-alpha | 126 | 3/30/2025 | |
0.12.0.27-alpha | 138 | 3/8/2025 | |
0.12.0 | 207 | 3/30/2025 | |
0.11.0.24-alpha | 284 | 8/25/2022 | |
0.11.0.23-alpha | 187 | 8/25/2022 | |
0.10.9.20-alpha | 233 | 7/2/2022 | |
0.10.9.19-alpha | 223 | 3/28/2022 | |
0.10.9.16-alpha | 197 | 3/28/2022 | |
0.10.9.15-alpha | 221 | 2/12/2022 | |
0.10.9 | 747 | 2/12/2022 | |
0.10.8 | 487 | 2/12/2022 | |
0.10.0 | 451 | 1/31/2022 |