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 (2)
Showing the top 2 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.
|
Version | Downloads | Last updated | |
---|---|---|---|
6.2.7 | 504 | 2/12/2024 | |
6.2.6 | 189 | 1/31/2024 | |
6.2.5 | 339 | 1/9/2024 | |
6.2.4 | 266 | 1/8/2024 | |
6.2.3 | 277 | 1/8/2024 | |
6.2.2 | 250 | 1/8/2024 | |
6.2.1 | 776 | 11/14/2023 | |
6.2.0 | 315 | 11/14/2023 | |
6.1.3 | 1,153 | 7/21/2023 | |
6.1.2 | 652 | 7/21/2023 | |
6.1.1 | 692 | 7/19/2023 | |
6.1.0 | 704 | 7/14/2023 | |
6.0.0 | 674 | 7/13/2023 | |
5.3.2 | 723 | 7/13/2023 | |
5.3.1 | 860 | 6/2/2023 | |
5.3.0 | 1,155 | 3/22/2023 | |
5.2.9 | 859 | 3/22/2023 | |
5.2.8 | 817 | 3/22/2023 | |
5.2.7 | 853 | 3/22/2023 | |
5.2.6 | 871 | 3/20/2023 | |
5.2.5 | 870 | 3/18/2023 | |
5.2.4 | 879 | 3/17/2023 | |
5.2.3 | 907 | 3/17/2023 | |
5.2.2 | 850 | 3/17/2023 | |
5.2.1 | 860 | 3/10/2023 | |
5.2.0 | 871 | 3/4/2023 | |
5.1.1 | 832 | 3/3/2023 | |
5.1.0 | 835 | 3/3/2023 | |
5.0.0 | 875 | 3/3/2023 | |
4.8.19 | 954 | 2/10/2023 | |
4.8.18 | 965 | 1/20/2023 | |
4.8.17 | 964 | 1/19/2023 | |
4.8.16 | 955 | 1/16/2023 | |
4.8.15 | 927 | 1/16/2023 | |
4.8.13 | 930 | 1/16/2023 | |
4.8.12 | 1,016 | 1/10/2023 | |
4.8.10 | 1,016 | 12/7/2022 | |
4.8.9 | 933 | 12/7/2022 | |
4.8.8 | 1,009 | 12/2/2022 | |
4.8.7 | 916 | 11/30/2022 | |
4.8.6 | 1,034 | 11/17/2022 | |
4.8.5 | 958 | 11/17/2022 | |
4.8.4 | 1,044 | 11/17/2022 | |
4.8.3 | 1,698 | 11/10/2022 | |
4.8.2 | 1,053 | 11/9/2022 | |
4.8.1 | 1,042 | 11/8/2022 | |
4.8.0 | 1,067 | 10/30/2022 | |
4.7.1 | 1,151 | 10/20/2022 | |
4.7.0 | 1,144 | 10/19/2022 | |
4.6.2 | 1,226 | 9/16/2022 | |
4.6.1 | 1,160 | 9/14/2022 | |
4.6.0 | 1,108 | 9/14/2022 | |
4.5.2 | 1,074 | 9/14/2022 | |
4.5.1 | 1,051 | 9/13/2022 | |
4.5.0 | 1,087 | 9/13/2022 | |
4.4.1 | 1,085 | 9/7/2022 | |
4.4.0 | 1,088 | 8/26/2022 | |
4.3.3 | 1,084 | 8/26/2022 | |
4.3.2 | 1,058 | 8/26/2022 | |
4.3.1 | 1,076 | 8/25/2022 | |
4.3.0 | 1,087 | 8/24/2022 | |
4.2.15 | 1,026 | 8/23/2022 | |
4.2.13 | 1,059 | 8/23/2022 | |
4.2.12 | 1,055 | 8/19/2022 | |
4.2.11 | 1,080 | 8/19/2022 | |
4.2.10 | 1,113 | 8/19/2022 | |
4.2.9 | 1,046 | 8/18/2022 | |
4.2.8 | 1,081 | 8/18/2022 | |
4.2.7 | 1,055 | 8/18/2022 | |
4.2.6 | 1,067 | 8/18/2022 | |
4.2.5 | 1,103 | 8/18/2022 | |
4.2.4 | 1,047 | 8/18/2022 | |
4.2.3 | 1,025 | 8/18/2022 | |
4.2.2 | 1,036 | 8/18/2022 | |
4.2.1 | 1,106 | 8/11/2022 | |
4.2.0 | 1,034 | 8/11/2022 | |
4.1.18 | 959 | 1/20/2023 | |
4.1.14 | 976 | 1/16/2023 | |
4.1.7 | 1,098 | 8/11/2022 | |
4.1.6 | 1,086 | 8/10/2022 | |
4.1.5 | 1,036 | 8/10/2022 | |
4.1.4 | 1,001 | 8/10/2022 | |
4.1.3 | 1,019 | 8/10/2022 | |
4.1.2 | 1,041 | 8/9/2022 | |
4.1.1 | 1,090 | 8/9/2022 | |
4.1.0 | 1,080 | 8/9/2022 | |
4.0.12 | 1,089 | 8/3/2022 | |
4.0.11 | 1,028 | 7/29/2022 | |
4.0.10 | 1,006 | 7/29/2022 | |
4.0.9 | 1,064 | 7/29/2022 | |
4.0.8 | 1,054 | 7/29/2022 | |
4.0.7 | 1,095 | 7/28/2022 | |
4.0.6 | 1,034 | 7/28/2022 | |
4.0.5 | 1,069 | 7/28/2022 | |
4.0.4 | 1,048 | 7/28/2022 | |
4.0.3 | 1,083 | 7/28/2022 | |
4.0.2 | 1,035 | 7/27/2022 | |
4.0.1 | 1,093 | 7/27/2022 | |
4.0.0 | 1,082 | 7/27/2022 | |
3.1.48 | 1,245 | 7/27/2022 | |
3.1.47 | 1,265 | 7/27/2022 | |
3.1.46 | 1,273 | 7/27/2022 | |
3.1.45 | 1,302 | 7/27/2022 | |
3.1.44 | 1,280 | 7/27/2022 | |
3.1.43 | 1,315 | 7/27/2022 | |
3.1.42 | 1,245 | 7/27/2022 | |
3.1.41 | 1,265 | 7/27/2022 | |
3.1.40 | 1,246 | 7/26/2022 | |
3.1.39 | 1,278 | 7/26/2022 | |
3.1.38 | 1,282 | 7/21/2022 | |
3.1.37 | 1,216 | 7/21/2022 | |
3.1.36 | 1,277 | 7/18/2022 | |
3.1.35 | 1,329 | 7/5/2022 | |
3.1.34 | 1,288 | 7/5/2022 | |
3.1.33 | 1,267 | 7/5/2022 | |
3.1.32 | 1,265 | 7/5/2022 | |
3.1.31 | 1,287 | 7/4/2022 | |
3.1.30 | 1,311 | 7/4/2022 | |
3.1.29 | 1,303 | 6/30/2022 | |
3.1.28 | 1,263 | 6/28/2022 | |
3.1.27 | 1,407 | 5/19/2022 | |
3.1.26 | 1,368 | 5/16/2022 | |
3.1.25 | 1,250 | 5/16/2022 | |
3.1.24 | 1,310 | 5/16/2022 | |
3.1.23 | 1,235 | 5/16/2022 | |
3.1.22 | 1,330 | 5/15/2022 | |
3.1.21 | 1,312 | 5/15/2022 | |
3.1.20 | 1,256 | 5/15/2022 | |
3.1.19 | 1,290 | 5/15/2022 | |
3.1.16 | 1,348 | 5/13/2022 | |
3.1.15 | 1,369 | 5/13/2022 | |
3.1.14 | 1,058 | 5/13/2022 | |
3.1.4 | 1,042 | 5/12/2022 | |
3.1.3 | 1,049 | 5/12/2022 | |
3.1.1 | 1,114 | 5/4/2022 | |
3.1.0 | 1,049 | 5/4/2022 | |
3.0.11 | 1,083 | 5/3/2022 | |
3.0.10 | 1,090 | 5/3/2022 | |
3.0.8 | 1,038 | 5/3/2022 | |
3.0.7 | 1,071 | 5/3/2022 | |
3.0.6 | 1,048 | 5/3/2022 | |
3.0.1 | 1,333 | 5/3/2022 | |
2.0.1 | 1,271 | 5/2/2022 | |
2.0.0 | 807 | 4/9/2022 | |
1.3.11 | 723 | 4/6/2022 | |
1.3.8 | 730 | 4/6/2022 | |
1.3.7 | 698 | 4/6/2022 | |
1.3.5 | 700 | 4/6/2022 | |
1.3.4 | 1,305 | 1/31/2022 | |
1.3.3 | 724 | 1/31/2022 | |
1.3.2 | 634 | 12/17/2021 | |
1.3.1 | 568 | 12/17/2021 | |
1.3.0 | 581 | 12/17/2021 | |
1.2.1 | 663 | 11/2/2021 | |
1.1.15 | 595 | 11/1/2021 | |
1.1.14 | 598 | 11/1/2021 | |
1.1.13 | 605 | 11/1/2021 | |
1.1.12 | 611 | 11/1/2021 | |
1.1.11 | 628 | 11/1/2021 | |
1.1.9 | 618 | 10/31/2021 | |
1.1.8 | 653 | 10/31/2021 | |
1.1.7 | 652 | 10/31/2021 | |
1.1.6 | 786 | 10/31/2021 | |
1.1.5 | 746 | 10/31/2021 | |
1.1.3 | 621 | 10/31/2021 | |
1.1.2 | 593 | 10/29/2021 | |
1.1.1 | 759 | 10/29/2021 | |
1.1.0 | 782 | 10/29/2021 | |
1.0.2 | 742 | 10/29/2021 | |
1.0.1 | 755 | 10/29/2021 | |
1.0.0 | 724 | 10/29/2021 |