MicaWPF 1.1.0
Unusable in that state.
See the version list below for details.
dotnet add package MicaWPF --version 1.1.0
NuGet\Install-Package MicaWPF -Version 1.1.0
<PackageReference Include="MicaWPF" Version="1.1.0" />
paket add MicaWPF --version 1.1.0
#r "nuget: MicaWPF, 1.1.0"
// Install MicaWPF as a Cake Addin #addin nuget:?package=MicaWPF&version=1.1.0 // Install MicaWPF as a Cake Tool #tool nuget:?package=MicaWPF&version=1.1.0
Overview
<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>
</div>
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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- No dependencies.
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 (5)
Showing the top 5 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 | 原神自動伐採君)
|
|
Simnico99/MicaWPF
This is a library to make Mica available in WPF.
|
|
Lixkote/Startify
Custom start menu for Windows 11 with some extras
|
|
hupo376787/WeiboAlbumDownloader
微博相册下载工具C#版,批量采集指定微博账号下的所有图片/视频/LivePhoto。
|
Version | Downloads | Last updated | |
---|---|---|---|
6.2.10 | 661 | 10/6/2024 | |
6.2.8 | 970 | 5/9/2024 | |
6.2.7 | 950 | 2/12/2024 | |
6.2.6 | 280 | 1/31/2024 | |
6.2.5 | 428 | 1/9/2024 | |
6.2.4 | 371 | 1/8/2024 | |
6.2.3 | 359 | 1/8/2024 | |
6.2.2 | 328 | 1/8/2024 | |
6.2.1 | 1,098 | 11/14/2023 | |
6.2.0 | 388 | 11/14/2023 | |
6.1.3 | 1,234 | 7/21/2023 | |
6.1.2 | 715 | 7/21/2023 | |
6.1.1 | 768 | 7/19/2023 | |
6.1.0 | 792 | 7/14/2023 | |
6.0.0 | 739 | 7/13/2023 | |
5.3.2 | 794 | 7/13/2023 | |
5.3.1 | 973 | 6/2/2023 | |
5.3.0 | 1,240 | 3/22/2023 | |
5.2.9 | 934 | 3/22/2023 | |
5.2.8 | 875 | 3/22/2023 | |
5.2.7 | 926 | 3/22/2023 | |
5.2.6 | 932 | 3/20/2023 | |
5.2.5 | 938 | 3/18/2023 | |
5.2.4 | 955 | 3/17/2023 | |
5.2.3 | 967 | 3/17/2023 | |
5.2.2 | 920 | 3/17/2023 | |
5.2.1 | 933 | 3/10/2023 | |
5.2.0 | 931 | 3/4/2023 | |
5.1.1 | 918 | 3/3/2023 | |
5.1.0 | 898 | 3/3/2023 | |
5.0.0 | 931 | 3/3/2023 | |
4.8.19 | 1,044 | 2/10/2023 | |
4.8.18 | 1,045 | 1/20/2023 | |
4.8.17 | 1,021 | 1/19/2023 | |
4.8.16 | 1,028 | 1/16/2023 | |
4.8.15 | 1,004 | 1/16/2023 | |
4.8.13 | 996 | 1/16/2023 | |
4.8.12 | 1,079 | 1/10/2023 | |
4.8.10 | 1,086 | 12/7/2022 | |
4.8.9 | 1,003 | 12/7/2022 | |
4.8.8 | 1,089 | 12/2/2022 | |
4.8.7 | 986 | 11/30/2022 | |
4.8.6 | 1,108 | 11/17/2022 | |
4.8.5 | 1,034 | 11/17/2022 | |
4.8.4 | 1,104 | 11/17/2022 | |
4.8.3 | 1,972 | 11/10/2022 | |
4.8.2 | 1,137 | 11/9/2022 | |
4.8.1 | 1,120 | 11/8/2022 | |
4.8.0 | 1,135 | 10/30/2022 | |
4.7.1 | 1,235 | 10/20/2022 | |
4.7.0 | 1,210 | 10/19/2022 | |
4.6.2 | 1,309 | 9/16/2022 | |
4.6.1 | 1,245 | 9/14/2022 | |
4.6.0 | 1,177 | 9/14/2022 | |
4.5.2 | 1,138 | 9/14/2022 | |
4.5.1 | 1,113 | 9/13/2022 | |
4.5.0 | 1,151 | 9/13/2022 | |
4.4.1 | 1,139 | 9/7/2022 | |
4.4.0 | 1,167 | 8/26/2022 | |
4.3.3 | 1,150 | 8/26/2022 | |
4.3.2 | 1,143 | 8/26/2022 | |
4.3.1 | 1,148 | 8/25/2022 | |
4.3.0 | 1,147 | 8/24/2022 | |
4.2.15 | 1,087 | 8/23/2022 | |
4.2.13 | 1,142 | 8/23/2022 | |
4.2.12 | 1,114 | 8/19/2022 | |
4.2.11 | 1,144 | 8/19/2022 | |
4.2.10 | 1,203 | 8/19/2022 | |
4.2.9 | 1,117 | 8/18/2022 | |
4.2.8 | 1,134 | 8/18/2022 | |
4.2.7 | 1,123 | 8/18/2022 | |
4.2.6 | 1,135 | 8/18/2022 | |
4.2.5 | 1,158 | 8/18/2022 | |
4.2.4 | 1,109 | 8/18/2022 | |
4.2.3 | 1,091 | 8/18/2022 | |
4.2.2 | 1,095 | 8/18/2022 | |
4.2.1 | 1,168 | 8/11/2022 | |
4.2.0 | 1,100 | 8/11/2022 | |
4.1.18 | 1,021 | 1/20/2023 | |
4.1.14 | 1,039 | 1/16/2023 | |
4.1.7 | 1,151 | 8/11/2022 | |
4.1.6 | 1,156 | 8/10/2022 | |
4.1.5 | 1,094 | 8/10/2022 | |
4.1.4 | 1,087 | 8/10/2022 | |
4.1.3 | 1,078 | 8/10/2022 | |
4.1.2 | 1,102 | 8/9/2022 | |
4.1.1 | 1,141 | 8/9/2022 | |
4.1.0 | 1,151 | 8/9/2022 | |
4.0.12 | 1,180 | 8/3/2022 | |
4.0.11 | 1,104 | 7/29/2022 | |
4.0.10 | 1,069 | 7/29/2022 | |
4.0.9 | 1,125 | 7/29/2022 | |
4.0.8 | 1,107 | 7/29/2022 | |
4.0.7 | 1,158 | 7/28/2022 | |
4.0.6 | 1,091 | 7/28/2022 | |
4.0.5 | 1,122 | 7/28/2022 | |
4.0.4 | 1,113 | 7/28/2022 | |
4.0.3 | 1,141 | 7/28/2022 | |
4.0.2 | 1,090 | 7/27/2022 | |
4.0.1 | 1,157 | 7/27/2022 | |
4.0.0 | 1,139 | 7/27/2022 | |
3.1.48 | 1,310 | 7/27/2022 | |
3.1.47 | 1,341 | 7/27/2022 | |
3.1.46 | 1,335 | 7/27/2022 | |
3.1.45 | 1,357 | 7/27/2022 | |
3.1.44 | 1,345 | 7/27/2022 | |
3.1.43 | 1,390 | 7/27/2022 | |
3.1.42 | 1,319 | 7/27/2022 | |
3.1.41 | 1,332 | 7/27/2022 | |
3.1.40 | 1,311 | 7/26/2022 | |
3.1.39 | 1,341 | 7/26/2022 | |
3.1.38 | 1,349 | 7/21/2022 | |
3.1.37 | 1,287 | 7/21/2022 | |
3.1.36 | 1,343 | 7/18/2022 | |
3.1.35 | 1,415 | 7/5/2022 | |
3.1.34 | 1,370 | 7/5/2022 | |
3.1.33 | 1,341 | 7/5/2022 | |
3.1.32 | 1,336 | 7/5/2022 | |
3.1.31 | 1,355 | 7/4/2022 | |
3.1.30 | 1,378 | 7/4/2022 | |
3.1.29 | 1,375 | 6/30/2022 | |
3.1.28 | 1,321 | 6/28/2022 | |
3.1.27 | 1,480 | 5/19/2022 | |
3.1.26 | 1,449 | 5/16/2022 | |
3.1.25 | 1,315 | 5/16/2022 | |
3.1.24 | 1,385 | 5/16/2022 | |
3.1.23 | 1,310 | 5/16/2022 | |
3.1.22 | 1,399 | 5/15/2022 | |
3.1.21 | 1,382 | 5/15/2022 | |
3.1.20 | 1,325 | 5/15/2022 | |
3.1.19 | 1,360 | 5/15/2022 | |
3.1.16 | 1,408 | 5/13/2022 | |
3.1.15 | 1,465 | 5/13/2022 | |
3.1.14 | 1,118 | 5/13/2022 | |
3.1.4 | 1,107 | 5/12/2022 | |
3.1.3 | 1,091 | 5/12/2022 | |
3.1.1 | 1,211 | 5/4/2022 | |
3.1.0 | 1,101 | 5/4/2022 | |
3.0.11 | 1,136 | 5/3/2022 | |
3.0.10 | 1,138 | 5/3/2022 | |
3.0.8 | 1,093 | 5/3/2022 | |
3.0.7 | 1,128 | 5/3/2022 | |
3.0.6 | 1,109 | 5/3/2022 | |
3.0.1 | 1,394 | 5/3/2022 | |
2.0.1 | 1,312 | 5/2/2022 | |
2.0.0 | 850 | 4/9/2022 | |
1.3.11 | 760 | 4/6/2022 | |
1.3.8 | 764 | 4/6/2022 | |
1.3.7 | 753 | 4/6/2022 | |
1.3.5 | 737 | 4/6/2022 | |
1.3.4 | 1,369 | 1/31/2022 | |
1.3.3 | 764 | 1/31/2022 | |
1.3.2 | 675 | 12/17/2021 | |
1.3.1 | 607 | 12/17/2021 | |
1.3.0 | 620 | 12/17/2021 | |
1.2.1 | 701 | 11/2/2021 | |
1.1.15 | 637 | 11/1/2021 | |
1.1.14 | 633 | 11/1/2021 | |
1.1.13 | 639 | 11/1/2021 | |
1.1.12 | 652 | 11/1/2021 | |
1.1.11 | 670 | 11/1/2021 | |
1.1.9 | 659 | 10/31/2021 | |
1.1.8 | 698 | 10/31/2021 | |
1.1.7 | 687 | 10/31/2021 | |
1.1.6 | 822 | 10/31/2021 | |
1.1.5 | 787 | 10/31/2021 | |
1.1.3 | 668 | 10/31/2021 | |
1.1.2 | 625 | 10/29/2021 | |
1.1.1 | 801 | 10/29/2021 | |
1.1.0 | 825 | 10/29/2021 | |
1.0.2 | 788 | 10/29/2021 | |
1.0.1 | 795 | 10/29/2021 | |
1.0.0 | 764 | 10/29/2021 |