Material.WindowStyle
0.11.0.23-alpha
This is a prerelease version of Material.WindowStyle.
There is a newer prerelease 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.11.0.23-alpha
NuGet\Install-Package Material.WindowStyle -Version 0.11.0.23-alpha
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.11.0.23-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Material.WindowStyle --version 0.11.0.23-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Material.WindowStyle, 0.11.0.23-alpha"
#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.
// Install Material.WindowStyle as a Cake Addin #addin nuget:?package=Material.WindowStyle&version=0.11.0.23-alpha&prerelease // Install Material.WindowStyle as a Cake Tool #tool nuget:?package=Material.WindowStyle&version=0.11.0.23-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Material.WindowStyle
A styling library that provides a beautiful, modern window design for Avalonia Applications. Its allowed to use without any themes dependence (since 0.11.0.23-alpha)
Getting started
To use this window style in your Avalonia Application, please follow below steps!
Requirements:
- AvaloniaUI framework version 11.0.0-preview1 or newer.
Steps:
- Update your Avalonia UI framework to latest. Make sure your framework version is newer or equal 11.0.0-preview1.
- 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. - Add those attributes to your
Window
view:
ExtendClientAreaToDecorationsHint="True"
- (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 by code-behind or do it 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>
This will set material title bar colours to all windows by default. Background will be gray, and the foreground will be white.
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. |
.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.11.0.24-alpha | 238 | 8/25/2022 | |
0.11.0.23-alpha | 163 | 8/25/2022 | |
0.10.9.20-alpha | 210 | 7/2/2022 | |
0.10.9.19-alpha | 201 | 3/28/2022 | |
0.10.9.16-alpha | 172 | 3/28/2022 | |
0.10.9.15-alpha | 193 | 2/12/2022 | |
0.10.9 | 674 | 2/12/2022 | |
0.10.8 | 440 | 2/12/2022 | |
0.10.0 | 415 | 1/31/2022 |