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" />
<PackageVersion Include="MicaWPF" Version="1.1.2" />
<PackageReference Include="MicaWPF" />
paket add MicaWPF --version 1.1.2
#r "nuget: MicaWPF, 1.1.2"
#addin nuget:?package=MicaWPF&version=1.1.2
#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. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 |
---|---|
unchihugo/FluentFlyout
A simple and modern audio flyout for Windows 11, built with Fluent 2 Design principles.
|
|
GenshinMatrix/genshin-woodmen
尘歌壶终结者(原神自动伐木姬 | Genshin Auto Wood Obtain | 原神自動伐採君)
|
|
Lixkote/Startify
Custom start menu for Windows 11 with some extras
|
|
hupo376787/WeiboAlbumDownloader
微博相册下载工具C#版,批量采集指定微博账号下的所有图片/视频/LivePhoto。
|
Version | Downloads | Last Updated | |
---|---|---|---|
6.3.0 | 791 | 3/24/2025 | |
6.2.14 | 512 | 3/24/2025 | |
6.2.11 | 440 | 3/24/2025 | |
6.2.10 | 1,396 | 10/6/2024 | |
6.2.8 | 1,039 | 5/9/2024 | |
6.2.7 | 1,088 | 2/12/2024 | |
6.2.6 | 302 | 1/31/2024 | |
6.2.5 | 455 | 1/9/2024 | |
6.2.4 | 393 | 1/8/2024 | |
6.2.3 | 381 | 1/8/2024 | |
6.2.2 | 349 | 1/8/2024 | |
6.2.1 | 1,179 | 11/14/2023 | |
6.2.0 | 400 | 11/14/2023 | |
6.1.3 | 1,267 | 7/21/2023 | |
6.1.2 | 738 | 7/21/2023 | |
6.1.1 | 795 | 7/19/2023 | |
6.1.0 | 816 | 7/14/2023 | |
6.0.0 | 763 | 7/13/2023 | |
5.3.2 | 816 | 7/13/2023 | |
5.3.1 | 997 | 6/2/2023 | |
5.3.0 | 1,279 | 3/22/2023 | |
5.2.9 | 965 | 3/22/2023 | |
5.2.8 | 904 | 3/22/2023 | |
5.2.7 | 959 | 3/22/2023 | |
5.2.6 | 960 | 3/20/2023 | |
5.2.5 | 966 | 3/18/2023 | |
5.2.4 | 983 | 3/17/2023 | |
5.2.3 | 997 | 3/17/2023 | |
5.2.2 | 956 | 3/17/2023 | |
5.2.1 | 968 | 3/10/2023 | |
5.2.0 | 963 | 3/4/2023 | |
5.1.1 | 965 | 3/3/2023 | |
5.1.0 | 948 | 3/3/2023 | |
5.0.0 | 985 | 3/3/2023 | |
4.8.19 | 1,083 | 2/10/2023 | |
4.8.18 | 1,077 | 1/20/2023 | |
4.8.17 | 1,058 | 1/19/2023 | |
4.8.16 | 1,060 | 1/16/2023 | |
4.8.15 | 1,033 | 1/16/2023 | |
4.8.13 | 1,029 | 1/16/2023 | |
4.8.12 | 1,110 | 1/10/2023 | |
4.8.10 | 1,121 | 12/7/2022 | |
4.8.9 | 1,031 | 12/7/2022 | |
4.8.8 | 1,129 | 12/2/2022 | |
4.8.7 | 1,017 | 11/30/2022 | |
4.8.6 | 1,143 | 11/17/2022 | |
4.8.5 | 1,066 | 11/17/2022 | |
4.8.4 | 1,155 | 11/17/2022 | |
4.8.3 | 2,115 | 11/10/2022 | |
4.8.2 | 1,170 | 11/9/2022 | |
4.8.1 | 1,152 | 11/8/2022 | |
4.8.0 | 1,167 | 10/30/2022 | |
4.7.1 | 1,269 | 10/20/2022 | |
4.7.0 | 1,246 | 10/19/2022 | |
4.6.2 | 1,346 | 9/16/2022 | |
4.6.1 | 1,280 | 9/14/2022 | |
4.6.0 | 1,217 | 9/14/2022 | |
4.5.2 | 1,178 | 9/14/2022 | |
4.5.1 | 1,156 | 9/13/2022 | |
4.5.0 | 1,188 | 9/13/2022 | |
4.4.1 | 1,175 | 9/7/2022 | |
4.4.0 | 1,202 | 8/26/2022 | |
4.3.3 | 1,183 | 8/26/2022 | |
4.3.2 | 1,182 | 8/26/2022 | |
4.3.1 | 1,179 | 8/25/2022 | |
4.3.0 | 1,185 | 8/24/2022 | |
4.2.15 | 1,130 | 8/23/2022 | |
4.2.13 | 1,182 | 8/23/2022 | |
4.2.12 | 1,150 | 8/19/2022 | |
4.2.11 | 1,180 | 8/19/2022 | |
4.2.10 | 1,252 | 8/19/2022 | |
4.2.9 | 1,152 | 8/18/2022 | |
4.2.8 | 1,171 | 8/18/2022 | |
4.2.7 | 1,160 | 8/18/2022 | |
4.2.6 | 1,169 | 8/18/2022 | |
4.2.5 | 1,194 | 8/18/2022 | |
4.2.4 | 1,146 | 8/18/2022 | |
4.2.3 | 1,129 | 8/18/2022 | |
4.2.2 | 1,135 | 8/18/2022 | |
4.2.1 | 1,210 | 8/11/2022 | |
4.2.0 | 1,138 | 8/11/2022 | |
4.1.18 | 1,051 | 1/20/2023 | |
4.1.14 | 1,075 | 1/16/2023 | |
4.1.7 | 1,185 | 8/11/2022 | |
4.1.6 | 1,190 | 8/10/2022 | |
4.1.5 | 1,130 | 8/10/2022 | |
4.1.4 | 1,122 | 8/10/2022 | |
4.1.3 | 1,114 | 8/10/2022 | |
4.1.2 | 1,140 | 8/9/2022 | |
4.1.1 | 1,178 | 8/9/2022 | |
4.1.0 | 1,194 | 8/9/2022 | |
4.0.12 | 1,219 | 8/3/2022 | |
4.0.11 | 1,140 | 7/29/2022 | |
4.0.10 | 1,111 | 7/29/2022 | |
4.0.9 | 1,163 | 7/29/2022 | |
4.0.8 | 1,145 | 7/29/2022 | |
4.0.7 | 1,195 | 7/28/2022 | |
4.0.6 | 1,132 | 7/28/2022 | |
4.0.5 | 1,163 | 7/28/2022 | |
4.0.4 | 1,150 | 7/28/2022 | |
4.0.3 | 1,177 | 7/28/2022 | |
4.0.2 | 1,125 | 7/27/2022 | |
4.0.1 | 1,193 | 7/27/2022 | |
4.0.0 | 1,193 | 7/27/2022 | |
3.1.48 | 1,350 | 7/27/2022 | |
3.1.47 | 1,375 | 7/27/2022 | |
3.1.46 | 1,380 | 7/27/2022 | |
3.1.45 | 1,398 | 7/27/2022 | |
3.1.44 | 1,386 | 7/27/2022 | |
3.1.43 | 1,431 | 7/27/2022 | |
3.1.42 | 1,357 | 7/27/2022 | |
3.1.41 | 1,369 | 7/27/2022 | |
3.1.40 | 1,345 | 7/26/2022 | |
3.1.39 | 1,380 | 7/26/2022 | |
3.1.38 | 1,390 | 7/21/2022 | |
3.1.37 | 1,323 | 7/21/2022 | |
3.1.36 | 1,379 | 7/18/2022 | |
3.1.35 | 1,458 | 7/5/2022 | |
3.1.34 | 1,406 | 7/5/2022 | |
3.1.33 | 1,385 | 7/5/2022 | |
3.1.32 | 1,373 | 7/5/2022 | |
3.1.31 | 1,406 | 7/4/2022 | |
3.1.30 | 1,423 | 7/4/2022 | |
3.1.29 | 1,417 | 6/30/2022 | |
3.1.28 | 1,361 | 6/28/2022 | |
3.1.27 | 1,545 | 5/19/2022 | |
3.1.26 | 1,487 | 5/16/2022 | |
3.1.25 | 1,355 | 5/16/2022 | |
3.1.24 | 1,430 | 5/16/2022 | |
3.1.23 | 1,347 | 5/16/2022 | |
3.1.22 | 1,440 | 5/15/2022 | |
3.1.21 | 1,426 | 5/15/2022 | |
3.1.20 | 1,376 | 5/15/2022 | |
3.1.19 | 1,405 | 5/15/2022 | |
3.1.16 | 1,449 | 5/13/2022 | |
3.1.15 | 1,525 | 5/13/2022 | |
3.1.14 | 1,159 | 5/13/2022 | |
3.1.4 | 1,147 | 5/12/2022 | |
3.1.3 | 1,129 | 5/12/2022 | |
3.1.1 | 1,252 | 5/4/2022 | |
3.1.0 | 1,162 | 5/4/2022 | |
3.0.11 | 1,182 | 5/3/2022 | |
3.0.10 | 1,180 | 5/3/2022 | |
3.0.8 | 1,137 | 5/3/2022 | |
3.0.7 | 1,167 | 5/3/2022 | |
3.0.6 | 1,149 | 5/3/2022 | |
3.0.1 | 1,434 | 5/3/2022 | |
2.0.1 | 1,357 | 5/2/2022 | |
2.0.0 | 894 | 4/9/2022 | |
1.3.11 | 801 | 4/6/2022 | |
1.3.8 | 811 | 4/6/2022 | |
1.3.7 | 796 | 4/6/2022 | |
1.3.5 | 778 | 4/6/2022 | |
1.3.4 | 1,415 | 1/31/2022 | |
1.3.3 | 820 | 1/31/2022 | |
1.3.2 | 728 | 12/17/2021 | |
1.3.1 | 663 | 12/17/2021 | |
1.3.0 | 669 | 12/17/2021 | |
1.2.1 | 748 | 11/2/2021 | |
1.1.15 | 685 | 11/1/2021 | |
1.1.14 | 679 | 11/1/2021 | |
1.1.13 | 685 | 11/1/2021 | |
1.1.12 | 699 | 11/1/2021 | |
1.1.11 | 761 | 11/1/2021 | |
1.1.9 | 706 | 10/31/2021 | |
1.1.8 | 746 | 10/31/2021 | |
1.1.7 | 752 | 10/31/2021 | |
1.1.6 | 908 | 10/31/2021 | |
1.1.5 | 895 | 10/31/2021 | |
1.1.3 | 716 | 10/31/2021 | |
1.1.2 | 673 | 10/29/2021 | |
1.1.1 | 888 | 10/29/2021 | |
1.1.0 | 921 | 10/29/2021 | |
1.0.2 | 873 | 10/29/2021 | |
1.0.1 | 881 | 10/29/2021 | |
1.0.0 | 855 | 10/29/2021 |