MicaWPF 1.1.2
See the version list below for details.
dotnet add package MicaWPF --version 1.1.2
NuGet\Install-Package MicaWPF -Version 1.1.2
<PackageReference Include="MicaWPF" Version="1.1.2" />
paket add MicaWPF --version 1.1.2
#r "nuget: MicaWPF, 1.1.2"
// Install MicaWPF as a Cake Addin #addin nuget:?package=MicaWPF&version=1.1.2 // Install MicaWPF as a Cake Tool #tool nuget:?package=MicaWPF&version=1.1.2
<h1 align="center">MicaWPF</h1><br /> <div align="center"> <img src="./Logo/Logo178x178.png" width="256"/> </div> <div align="center"> <h4>This is a library to make Mica available in WPF because we can't wait for WinUI 3.0 to support it in unpackaged apps.</h4>
<h2 align="center">Overview</h2>
Installation
Download via the Nuget package manager.
Install-Package MicaWPF
Preview
<br/><br/> Also snap grid works with this method:<br/>
Usage
Recommended
The easiest way is to use the custom window:
- In the code behind your window add those lines
public partial class MainWindow : MicaWindow //<-- Make this a mica window right here
{
public MainWindow()
{
InitializeComponent();
}
}
- In the window xaml add this:
<mica:MicaWindow x:Class="WpfDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfDemo"
xmlns:mica="clr-namespace:MicaWPF.Controls;assembly=MicaWPF"
mc:Ignorable="d"
Title="MainWindow"
Height="450"
Width="800">
<Grid>
</Grid>
</mica:MicaWindow>
Compatibility
If you already use a custom window you can do this:
- In the code behind your window add those lines
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Loaded += MainWindow_Loaded; //<-- Add this line
}
private void MainWindow_Loaded(object sender, RoutedEventArgs e) //< --Add this entire method or add to your loaded method.
{
this.EnableMica(WindowsTheme.Auto);
}
}
- In the window xaml add this:
<Window x:Class="WpfDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfDemo"
mc:Ignorable="d"
Title="MainWindow"
Height="450"
Width="800"
Background="Transparent">
<WindowChrome.WindowChrome>
<WindowChrome
CaptionHeight="20"
ResizeBorderThickness="8"
CornerRadius="0"
GlassFrameThickness="-1"
UseAeroCaptionButtons="True" />
</WindowChrome.WindowChrome>
<Grid>
</Grid>
</Window>
More Info
There is a demo app you can download in the demo folder if you need a template or to see it in action.
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 | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- System.Management (>= 5.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on MicaWPF:
Package | Downloads |
---|---|
Nickvision.WPF
A framework for creating Nickvision applications with WPF. |
|
MicaWPF.DependencyInjection
An extension of MicaWPF that adds dependency injection support. |
|
MicaWPF.Extension
An extension of MicaWPF that adds controls and helpers. |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on MicaWPF:
Repository | Stars |
---|---|
GenshinMatrix/genshin-woodmen
尘歌壶终结者(原神自动伐木姬 | Genshin Auto Wood Obtain | 原神自動伐採君)
|
|
Simnico99/MicaWPF
This is a library to make Mica available in WPF.
|
|
unchihugo/FluentFlyout
A simple and modern audio flyout for Windows 10/11, built with Fluent 2 Design principles.
|
|
Lixkote/Startify
Custom start menu for Windows 11 with some extras
|
Version | Downloads | Last updated | |
---|---|---|---|
6.2.10 | 317 | 10/6/2024 | |
6.2.8 | 863 | 5/9/2024 | |
6.2.7 | 820 | 2/12/2024 | |
6.2.6 | 268 | 1/31/2024 | |
6.2.5 | 391 | 1/9/2024 | |
6.2.4 | 353 | 1/8/2024 | |
6.2.3 | 346 | 1/8/2024 | |
6.2.2 | 311 | 1/8/2024 | |
6.2.1 | 1,009 | 11/14/2023 | |
6.2.0 | 375 | 11/14/2023 | |
6.1.3 | 1,216 | 7/21/2023 | |
6.1.2 | 704 | 7/21/2023 | |
6.1.1 | 758 | 7/19/2023 | |
6.1.0 | 775 | 7/14/2023 | |
6.0.0 | 728 | 7/13/2023 | |
5.3.2 | 783 | 7/13/2023 | |
5.3.1 | 923 | 6/2/2023 | |
5.3.0 | 1,228 | 3/22/2023 | |
5.2.9 | 925 | 3/22/2023 | |
5.2.8 | 866 | 3/22/2023 | |
5.2.7 | 914 | 3/22/2023 | |
5.2.6 | 921 | 3/20/2023 | |
5.2.5 | 928 | 3/18/2023 | |
5.2.4 | 946 | 3/17/2023 | |
5.2.3 | 957 | 3/17/2023 | |
5.2.2 | 911 | 3/17/2023 | |
5.2.1 | 920 | 3/10/2023 | |
5.2.0 | 921 | 3/4/2023 | |
5.1.1 | 909 | 3/3/2023 | |
5.1.0 | 888 | 3/3/2023 | |
5.0.0 | 921 | 3/3/2023 | |
4.8.19 | 1,030 | 2/10/2023 | |
4.8.18 | 1,025 | 1/20/2023 | |
4.8.17 | 1,010 | 1/19/2023 | |
4.8.16 | 1,020 | 1/16/2023 | |
4.8.15 | 992 | 1/16/2023 | |
4.8.13 | 983 | 1/16/2023 | |
4.8.12 | 1,066 | 1/10/2023 | |
4.8.10 | 1,074 | 12/7/2022 | |
4.8.9 | 990 | 12/7/2022 | |
4.8.8 | 1,066 | 12/2/2022 | |
4.8.7 | 969 | 11/30/2022 | |
4.8.6 | 1,090 | 11/17/2022 | |
4.8.5 | 1,018 | 11/17/2022 | |
4.8.4 | 1,090 | 11/17/2022 | |
4.8.3 | 1,912 | 11/10/2022 | |
4.8.2 | 1,109 | 11/9/2022 | |
4.8.1 | 1,106 | 11/8/2022 | |
4.8.0 | 1,123 | 10/30/2022 | |
4.7.1 | 1,216 | 10/20/2022 | |
4.7.0 | 1,193 | 10/19/2022 | |
4.6.2 | 1,289 | 9/16/2022 | |
4.6.1 | 1,224 | 9/14/2022 | |
4.6.0 | 1,159 | 9/14/2022 | |
4.5.2 | 1,124 | 9/14/2022 | |
4.5.1 | 1,099 | 9/13/2022 | |
4.5.0 | 1,132 | 9/13/2022 | |
4.4.1 | 1,126 | 9/7/2022 | |
4.4.0 | 1,154 | 8/26/2022 | |
4.3.3 | 1,134 | 8/26/2022 | |
4.3.2 | 1,127 | 8/26/2022 | |
4.3.1 | 1,130 | 8/25/2022 | |
4.3.0 | 1,130 | 8/24/2022 | |
4.2.15 | 1,070 | 8/23/2022 | |
4.2.13 | 1,124 | 8/23/2022 | |
4.2.12 | 1,098 | 8/19/2022 | |
4.2.11 | 1,127 | 8/19/2022 | |
4.2.10 | 1,187 | 8/19/2022 | |
4.2.9 | 1,099 | 8/18/2022 | |
4.2.8 | 1,120 | 8/18/2022 | |
4.2.7 | 1,106 | 8/18/2022 | |
4.2.6 | 1,118 | 8/18/2022 | |
4.2.5 | 1,142 | 8/18/2022 | |
4.2.4 | 1,093 | 8/18/2022 | |
4.2.3 | 1,074 | 8/18/2022 | |
4.2.2 | 1,082 | 8/18/2022 | |
4.2.1 | 1,153 | 8/11/2022 | |
4.2.0 | 1,087 | 8/11/2022 | |
4.1.18 | 1,010 | 1/20/2023 | |
4.1.14 | 1,026 | 1/16/2023 | |
4.1.7 | 1,135 | 8/11/2022 | |
4.1.6 | 1,138 | 8/10/2022 | |
4.1.5 | 1,080 | 8/10/2022 | |
4.1.4 | 1,049 | 8/10/2022 | |
4.1.3 | 1,063 | 8/10/2022 | |
4.1.2 | 1,088 | 8/9/2022 | |
4.1.1 | 1,128 | 8/9/2022 | |
4.1.0 | 1,135 | 8/9/2022 | |
4.0.12 | 1,163 | 8/3/2022 | |
4.0.11 | 1,087 | 7/29/2022 | |
4.0.10 | 1,052 | 7/29/2022 | |
4.0.9 | 1,111 | 7/29/2022 | |
4.0.8 | 1,095 | 7/29/2022 | |
4.0.7 | 1,144 | 7/28/2022 | |
4.0.6 | 1,073 | 7/28/2022 | |
4.0.5 | 1,108 | 7/28/2022 | |
4.0.4 | 1,097 | 7/28/2022 | |
4.0.3 | 1,125 | 7/28/2022 | |
4.0.2 | 1,075 | 7/27/2022 | |
4.0.1 | 1,142 | 7/27/2022 | |
4.0.0 | 1,125 | 7/27/2022 | |
3.1.48 | 1,297 | 7/27/2022 | |
3.1.47 | 1,325 | 7/27/2022 | |
3.1.46 | 1,320 | 7/27/2022 | |
3.1.45 | 1,346 | 7/27/2022 | |
3.1.44 | 1,327 | 7/27/2022 | |
3.1.43 | 1,375 | 7/27/2022 | |
3.1.42 | 1,301 | 7/27/2022 | |
3.1.41 | 1,318 | 7/27/2022 | |
3.1.40 | 1,295 | 7/26/2022 | |
3.1.39 | 1,326 | 7/26/2022 | |
3.1.38 | 1,334 | 7/21/2022 | |
3.1.37 | 1,271 | 7/21/2022 | |
3.1.36 | 1,327 | 7/18/2022 | |
3.1.35 | 1,402 | 7/5/2022 | |
3.1.34 | 1,354 | 7/5/2022 | |
3.1.33 | 1,326 | 7/5/2022 | |
3.1.32 | 1,321 | 7/5/2022 | |
3.1.31 | 1,342 | 7/4/2022 | |
3.1.30 | 1,363 | 7/4/2022 | |
3.1.29 | 1,361 | 6/30/2022 | |
3.1.28 | 1,304 | 6/28/2022 | |
3.1.27 | 1,465 | 5/19/2022 | |
3.1.26 | 1,435 | 5/16/2022 | |
3.1.25 | 1,302 | 5/16/2022 | |
3.1.24 | 1,363 | 5/16/2022 | |
3.1.23 | 1,295 | 5/16/2022 | |
3.1.22 | 1,386 | 5/15/2022 | |
3.1.21 | 1,367 | 5/15/2022 | |
3.1.20 | 1,312 | 5/15/2022 | |
3.1.19 | 1,347 | 5/15/2022 | |
3.1.16 | 1,395 | 5/13/2022 | |
3.1.15 | 1,454 | 5/13/2022 | |
3.1.14 | 1,105 | 5/13/2022 | |
3.1.4 | 1,091 | 5/12/2022 | |
3.1.3 | 1,077 | 5/12/2022 | |
3.1.1 | 1,161 | 5/4/2022 | |
3.1.0 | 1,088 | 5/4/2022 | |
3.0.11 | 1,124 | 5/3/2022 | |
3.0.10 | 1,124 | 5/3/2022 | |
3.0.8 | 1,079 | 5/3/2022 | |
3.0.7 | 1,114 | 5/3/2022 | |
3.0.6 | 1,093 | 5/3/2022 | |
3.0.1 | 1,382 | 5/3/2022 | |
2.0.1 | 1,302 | 5/2/2022 | |
2.0.0 | 839 | 4/9/2022 | |
1.3.11 | 750 | 4/6/2022 | |
1.3.8 | 754 | 4/6/2022 | |
1.3.7 | 742 | 4/6/2022 | |
1.3.5 | 725 | 4/6/2022 | |
1.3.4 | 1,357 | 1/31/2022 | |
1.3.3 | 753 | 1/31/2022 | |
1.3.2 | 663 | 12/17/2021 | |
1.3.1 | 596 | 12/17/2021 | |
1.3.0 | 610 | 12/17/2021 | |
1.2.1 | 690 | 11/2/2021 | |
1.1.15 | 626 | 11/1/2021 | |
1.1.14 | 623 | 11/1/2021 | |
1.1.13 | 628 | 11/1/2021 | |
1.1.12 | 639 | 11/1/2021 | |
1.1.11 | 659 | 11/1/2021 | |
1.1.9 | 649 | 10/31/2021 | |
1.1.8 | 686 | 10/31/2021 | |
1.1.7 | 676 | 10/31/2021 | |
1.1.6 | 812 | 10/31/2021 | |
1.1.5 | 777 | 10/31/2021 | |
1.1.3 | 657 | 10/31/2021 | |
1.1.2 | 615 | 10/29/2021 | |
1.1.1 | 791 | 10/29/2021 | |
1.1.0 | 812 | 10/29/2021 | |
1.0.2 | 776 | 10/29/2021 | |
1.0.1 | 784 | 10/29/2021 | |
1.0.0 | 754 | 10/29/2021 |