MicaWPF 1.1.1
Unusable in that state.
See the version list below for details.
dotnet add package MicaWPF --version 1.1.1
NuGet\Install-Package MicaWPF -Version 1.1.1
<PackageReference Include="MicaWPF" Version="1.1.1" />
paket add MicaWPF --version 1.1.1
#r "nuget: MicaWPF, 1.1.1"
// Install MicaWPF as a Cake Addin
#addin nuget:?package=MicaWPF&version=1.1.1
// Install MicaWPF as a Cake Tool
#tool nuget:?package=MicaWPF&version=1.1.1
<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
- 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 (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.8 | 342 | 5/9/2024 | |
6.2.7 | 649 | 2/12/2024 | |
6.2.6 | 196 | 1/31/2024 | |
6.2.5 | 346 | 1/9/2024 | |
6.2.4 | 273 | 1/8/2024 | |
6.2.3 | 284 | 1/8/2024 | |
6.2.2 | 262 | 1/8/2024 | |
6.2.1 | 809 | 11/14/2023 | |
6.2.0 | 322 | 11/14/2023 | |
6.1.3 | 1,163 | 7/21/2023 | |
6.1.2 | 659 | 7/21/2023 | |
6.1.1 | 699 | 7/19/2023 | |
6.1.0 | 711 | 7/14/2023 | |
6.0.0 | 682 | 7/13/2023 | |
5.3.2 | 732 | 7/13/2023 | |
5.3.1 | 874 | 6/2/2023 | |
5.3.0 | 1,171 | 3/22/2023 | |
5.2.9 | 867 | 3/22/2023 | |
5.2.8 | 826 | 3/22/2023 | |
5.2.7 | 861 | 3/22/2023 | |
5.2.6 | 878 | 3/20/2023 | |
5.2.5 | 878 | 3/18/2023 | |
5.2.4 | 886 | 3/17/2023 | |
5.2.3 | 915 | 3/17/2023 | |
5.2.2 | 857 | 3/17/2023 | |
5.2.1 | 868 | 3/10/2023 | |
5.2.0 | 878 | 3/4/2023 | |
5.1.1 | 840 | 3/3/2023 | |
5.1.0 | 842 | 3/3/2023 | |
5.0.0 | 883 | 3/3/2023 | |
4.8.19 | 961 | 2/10/2023 | |
4.8.18 | 975 | 1/20/2023 | |
4.8.17 | 973 | 1/19/2023 | |
4.8.16 | 963 | 1/16/2023 | |
4.8.15 | 936 | 1/16/2023 | |
4.8.13 | 936 | 1/16/2023 | |
4.8.12 | 1,022 | 1/10/2023 | |
4.8.10 | 1,027 | 12/7/2022 | |
4.8.9 | 939 | 12/7/2022 | |
4.8.8 | 1,015 | 12/2/2022 | |
4.8.7 | 922 | 11/30/2022 | |
4.8.6 | 1,040 | 11/17/2022 | |
4.8.5 | 965 | 11/17/2022 | |
4.8.4 | 1,050 | 11/17/2022 | |
4.8.3 | 1,768 | 11/10/2022 | |
4.8.2 | 1,056 | 11/9/2022 | |
4.8.1 | 1,044 | 11/8/2022 | |
4.8.0 | 1,073 | 10/30/2022 | |
4.7.1 | 1,158 | 10/20/2022 | |
4.7.0 | 1,154 | 10/19/2022 | |
4.6.2 | 1,231 | 9/16/2022 | |
4.6.1 | 1,168 | 9/14/2022 | |
4.6.0 | 1,110 | 9/14/2022 | |
4.5.2 | 1,076 | 9/14/2022 | |
4.5.1 | 1,053 | 9/13/2022 | |
4.5.0 | 1,089 | 9/13/2022 | |
4.4.1 | 1,088 | 9/7/2022 | |
4.4.0 | 1,091 | 8/26/2022 | |
4.3.3 | 1,087 | 8/26/2022 | |
4.3.2 | 1,060 | 8/26/2022 | |
4.3.1 | 1,078 | 8/25/2022 | |
4.3.0 | 1,089 | 8/24/2022 | |
4.2.15 | 1,029 | 8/23/2022 | |
4.2.13 | 1,062 | 8/23/2022 | |
4.2.12 | 1,059 | 8/19/2022 | |
4.2.11 | 1,082 | 8/19/2022 | |
4.2.10 | 1,123 | 8/19/2022 | |
4.2.9 | 1,048 | 8/18/2022 | |
4.2.8 | 1,083 | 8/18/2022 | |
4.2.7 | 1,057 | 8/18/2022 | |
4.2.6 | 1,069 | 8/18/2022 | |
4.2.5 | 1,105 | 8/18/2022 | |
4.2.4 | 1,049 | 8/18/2022 | |
4.2.3 | 1,027 | 8/18/2022 | |
4.2.2 | 1,038 | 8/18/2022 | |
4.2.1 | 1,114 | 8/11/2022 | |
4.2.0 | 1,036 | 8/11/2022 | |
4.1.18 | 969 | 1/20/2023 | |
4.1.14 | 982 | 1/16/2023 | |
4.1.7 | 1,100 | 8/11/2022 | |
4.1.6 | 1,088 | 8/10/2022 | |
4.1.5 | 1,038 | 8/10/2022 | |
4.1.4 | 1,003 | 8/10/2022 | |
4.1.3 | 1,021 | 8/10/2022 | |
4.1.2 | 1,043 | 8/9/2022 | |
4.1.1 | 1,092 | 8/9/2022 | |
4.1.0 | 1,082 | 8/9/2022 | |
4.0.12 | 1,094 | 8/3/2022 | |
4.0.11 | 1,031 | 7/29/2022 | |
4.0.10 | 1,008 | 7/29/2022 | |
4.0.9 | 1,066 | 7/29/2022 | |
4.0.8 | 1,056 | 7/29/2022 | |
4.0.7 | 1,097 | 7/28/2022 | |
4.0.6 | 1,036 | 7/28/2022 | |
4.0.5 | 1,072 | 7/28/2022 | |
4.0.4 | 1,059 | 7/28/2022 | |
4.0.3 | 1,085 | 7/28/2022 | |
4.0.2 | 1,037 | 7/27/2022 | |
4.0.1 | 1,096 | 7/27/2022 | |
4.0.0 | 1,090 | 7/27/2022 | |
3.1.48 | 1,248 | 7/27/2022 | |
3.1.47 | 1,267 | 7/27/2022 | |
3.1.46 | 1,275 | 7/27/2022 | |
3.1.45 | 1,304 | 7/27/2022 | |
3.1.44 | 1,282 | 7/27/2022 | |
3.1.43 | 1,319 | 7/27/2022 | |
3.1.42 | 1,247 | 7/27/2022 | |
3.1.41 | 1,273 | 7/27/2022 | |
3.1.40 | 1,248 | 7/26/2022 | |
3.1.39 | 1,280 | 7/26/2022 | |
3.1.38 | 1,284 | 7/21/2022 | |
3.1.37 | 1,218 | 7/21/2022 | |
3.1.36 | 1,279 | 7/18/2022 | |
3.1.35 | 1,331 | 7/5/2022 | |
3.1.34 | 1,296 | 7/5/2022 | |
3.1.33 | 1,269 | 7/5/2022 | |
3.1.32 | 1,267 | 7/5/2022 | |
3.1.31 | 1,289 | 7/4/2022 | |
3.1.30 | 1,313 | 7/4/2022 | |
3.1.29 | 1,306 | 6/30/2022 | |
3.1.28 | 1,265 | 6/28/2022 | |
3.1.27 | 1,412 | 5/19/2022 | |
3.1.26 | 1,376 | 5/16/2022 | |
3.1.25 | 1,252 | 5/16/2022 | |
3.1.24 | 1,312 | 5/16/2022 | |
3.1.23 | 1,237 | 5/16/2022 | |
3.1.22 | 1,332 | 5/15/2022 | |
3.1.21 | 1,314 | 5/15/2022 | |
3.1.20 | 1,258 | 5/15/2022 | |
3.1.19 | 1,292 | 5/15/2022 | |
3.1.16 | 1,350 | 5/13/2022 | |
3.1.15 | 1,371 | 5/13/2022 | |
3.1.14 | 1,060 | 5/13/2022 | |
3.1.4 | 1,044 | 5/12/2022 | |
3.1.3 | 1,051 | 5/12/2022 | |
3.1.1 | 1,116 | 5/4/2022 | |
3.1.0 | 1,051 | 5/4/2022 | |
3.0.11 | 1,086 | 5/3/2022 | |
3.0.10 | 1,092 | 5/3/2022 | |
3.0.8 | 1,040 | 5/3/2022 | |
3.0.7 | 1,073 | 5/3/2022 | |
3.0.6 | 1,050 | 5/3/2022 | |
3.0.1 | 1,335 | 5/3/2022 | |
2.0.1 | 1,275 | 5/2/2022 | |
2.0.0 | 809 | 4/9/2022 | |
1.3.11 | 725 | 4/6/2022 | |
1.3.8 | 732 | 4/6/2022 | |
1.3.7 | 705 | 4/6/2022 | |
1.3.5 | 702 | 4/6/2022 | |
1.3.4 | 1,309 | 1/31/2022 | |
1.3.3 | 726 | 1/31/2022 | |
1.3.2 | 637 | 12/17/2021 | |
1.3.1 | 570 | 12/17/2021 | |
1.3.0 | 583 | 12/17/2021 | |
1.2.1 | 666 | 11/2/2021 | |
1.1.15 | 598 | 11/1/2021 | |
1.1.14 | 600 | 11/1/2021 | |
1.1.13 | 607 | 11/1/2021 | |
1.1.12 | 613 | 11/1/2021 | |
1.1.11 | 630 | 11/1/2021 | |
1.1.9 | 621 | 10/31/2021 | |
1.1.8 | 655 | 10/31/2021 | |
1.1.7 | 654 | 10/31/2021 | |
1.1.6 | 788 | 10/31/2021 | |
1.1.5 | 748 | 10/31/2021 | |
1.1.3 | 623 | 10/31/2021 | |
1.1.2 | 595 | 10/29/2021 | |
1.1.1 | 761 | 10/29/2021 | |
1.1.0 | 784 | 10/29/2021 | |
1.0.2 | 745 | 10/29/2021 | |
1.0.1 | 757 | 10/29/2021 | |
1.0.0 | 726 | 10/29/2021 |