MicaWPF 1.1.1

Additional Details

Unusable in that state.

There is a newer version of this package available.
See the version list below for details.
dotnet add package MicaWPF --version 1.1.1                
NuGet\Install-Package MicaWPF -Version 1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MicaWPF" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MicaWPF --version 1.1.1                
#r "nuget: MicaWPF, 1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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>

NuGet NuGet(preview) NuGet(download) License </div>

<h2 align="center">Overview</h2>

Installation

Download via the Nuget package manager.

Install-Package MicaWPF

Preview

image<br/><br/> Also snap grid works with this method:<br/> image

Usage

The easiest way is to use the custom window:

  1. In the code behind your window add those lines
    public partial class MainWindow : MicaWindow //<-- Make this a mica window right here
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
  1. 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:

  1. 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); 
        }
    }
  1. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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 (3)

Showing the top 3 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.
Lixkote/Startify
Custom start menu for Windows 11 with some extras
Version Downloads Last updated
6.2.8 718 5/9/2024
6.2.7 738 2/12/2024
6.2.6 208 1/31/2024
6.2.5 359 1/9/2024
6.2.4 292 1/8/2024
6.2.3 296 1/8/2024
6.2.2 275 1/8/2024
6.2.1 835 11/14/2023
6.2.0 330 11/14/2023
6.1.3 1,173 7/21/2023
6.1.2 671 7/21/2023
6.1.1 713 7/19/2023
6.1.0 744 7/14/2023
6.0.0 695 7/13/2023
5.3.2 741 7/13/2023
5.3.1 890 6/2/2023
5.3.0 1,179 3/22/2023
5.2.9 877 3/22/2023
5.2.8 837 3/22/2023
5.2.7 865 3/22/2023
5.2.6 892 3/20/2023
5.2.5 888 3/18/2023
5.2.4 895 3/17/2023
5.2.3 920 3/17/2023
5.2.2 860 3/17/2023
5.2.1 877 3/10/2023
5.2.0 885 3/4/2023
5.1.1 846 3/3/2023 5.1.1 is deprecated because it has critical bugs.
5.1.0 856 3/3/2023 5.1.0 is deprecated because it has critical bugs.
5.0.0 889 3/3/2023 5.0.0 is deprecated because it has critical bugs.
4.8.19 993 2/10/2023
4.8.18 984 1/20/2023
4.8.17 980 1/19/2023
4.8.16 981 1/16/2023
4.8.15 945 1/16/2023
4.8.13 948 1/16/2023
4.8.12 1,034 1/10/2023
4.8.10 1,043 12/7/2022
4.8.9 952 12/7/2022
4.8.8 1,018 12/2/2022
4.8.7 933 11/30/2022
4.8.6 1,053 11/17/2022
4.8.5 979 11/17/2022
4.8.4 1,057 11/17/2022 4.8.4 is deprecated because it has critical bugs.
4.8.3 1,812 11/10/2022
4.8.2 1,063 11/9/2022
4.8.1 1,058 11/8/2022
4.8.0 1,092 10/30/2022
4.7.1 1,165 10/20/2022
4.7.0 1,162 10/19/2022
4.6.2 1,241 9/16/2022
4.6.1 1,176 9/14/2022
4.6.0 1,125 9/14/2022
4.5.2 1,083 9/14/2022
4.5.1 1,060 9/13/2022
4.5.0 1,096 9/13/2022
4.4.1 1,095 9/7/2022
4.4.0 1,099 8/26/2022
4.3.3 1,095 8/26/2022
4.3.2 1,068 8/26/2022
4.3.1 1,086 8/25/2022
4.3.0 1,097 8/24/2022
4.2.15 1,037 8/23/2022
4.2.13 1,081 8/23/2022
4.2.12 1,068 8/19/2022
4.2.11 1,096 8/19/2022
4.2.10 1,131 8/19/2022
4.2.9 1,061 8/18/2022
4.2.8 1,092 8/18/2022
4.2.7 1,065 8/18/2022
4.2.6 1,077 8/18/2022
4.2.5 1,113 8/18/2022
4.2.4 1,056 8/18/2022
4.2.3 1,035 8/18/2022
4.2.2 1,047 8/18/2022
4.2.1 1,122 8/11/2022
4.2.0 1,044 8/11/2022
4.1.18 981 1/20/2023
4.1.14 994 1/16/2023
4.1.7 1,108 8/11/2022
4.1.6 1,107 8/10/2022
4.1.5 1,047 8/10/2022
4.1.4 1,011 8/10/2022
4.1.3 1,029 8/10/2022
4.1.2 1,052 8/9/2022
4.1.1 1,100 8/9/2022
4.1.0 1,096 8/9/2022
4.0.12 1,105 8/3/2022
4.0.11 1,041 7/29/2022
4.0.10 1,023 7/29/2022
4.0.9 1,082 7/29/2022
4.0.8 1,064 7/29/2022
4.0.7 1,105 7/28/2022
4.0.6 1,044 7/28/2022
4.0.5 1,081 7/28/2022
4.0.4 1,067 7/28/2022
4.0.3 1,094 7/28/2022
4.0.2 1,046 7/27/2022
4.0.1 1,106 7/27/2022
4.0.0 1,099 7/27/2022
3.1.48 1,257 7/27/2022
3.1.47 1,275 7/27/2022
3.1.46 1,284 7/27/2022
3.1.45 1,319 7/27/2022
3.1.44 1,292 7/27/2022
3.1.43 1,328 7/27/2022
3.1.42 1,261 7/27/2022
3.1.41 1,281 7/27/2022
3.1.40 1,258 7/26/2022
3.1.39 1,290 7/26/2022
3.1.38 1,294 7/21/2022
3.1.37 1,235 7/21/2022
3.1.36 1,289 7/18/2022
3.1.35 1,363 7/5/2022
3.1.34 1,307 7/5/2022
3.1.33 1,279 7/5/2022
3.1.32 1,276 7/5/2022
3.1.31 1,299 7/4/2022
3.1.30 1,322 7/4/2022
3.1.29 1,315 6/30/2022
3.1.28 1,275 6/28/2022
3.1.27 1,422 5/19/2022
3.1.26 1,392 5/16/2022
3.1.25 1,259 5/16/2022
3.1.24 1,319 5/16/2022
3.1.23 1,251 5/16/2022
3.1.22 1,342 5/15/2022
3.1.21 1,322 5/15/2022
3.1.20 1,265 5/15/2022
3.1.19 1,300 5/15/2022
3.1.16 1,358 5/13/2022
3.1.15 1,381 5/13/2022
3.1.14 1,076 5/13/2022
3.1.4 1,057 5/12/2022
3.1.3 1,059 5/12/2022
3.1.1 1,130 5/4/2022
3.1.0 1,059 5/4/2022
3.0.11 1,097 5/3/2022
3.0.10 1,100 5/3/2022
3.0.8 1,047 5/3/2022
3.0.7 1,082 5/3/2022
3.0.6 1,065 5/3/2022
3.0.1 1,347 5/3/2022
2.0.1 1,282 5/2/2022
2.0.0 821 4/9/2022
1.3.11 730 4/6/2022
1.3.8 737 4/6/2022
1.3.7 723 4/6/2022
1.3.5 707 4/6/2022
1.3.4 1,321 1/31/2022
1.3.3 734 1/31/2022
1.3.2 642 12/17/2021
1.3.1 576 12/17/2021
1.3.0 593 12/17/2021
1.2.1 671 11/2/2021
1.1.15 603 11/1/2021
1.1.14 607 11/1/2021
1.1.13 612 11/1/2021
1.1.12 618 11/1/2021
1.1.11 636 11/1/2021 1.1.11 is deprecated because it has critical bugs.
1.1.9 633 10/31/2021
1.1.8 661 10/31/2021
1.1.7 659 10/31/2021
1.1.6 795 10/31/2021 1.1.6 is deprecated because it has critical bugs.
1.1.5 760 10/31/2021 1.1.5 is deprecated because it has critical bugs.
1.1.3 628 10/31/2021
1.1.2 601 10/29/2021
1.1.1 769 10/29/2021 1.1.1 is deprecated because it has critical bugs.
1.1.0 792 10/29/2021 1.1.0 is deprecated because it has critical bugs.
1.0.2 753 10/29/2021 1.0.2 is deprecated because it has critical bugs.
1.0.1 764 10/29/2021 1.0.1 is deprecated because it has critical bugs.
1.0.0 734 10/29/2021 1.0.0 is deprecated because it has critical bugs.