MicaWPF 1.1.0

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.0
NuGet\Install-Package MicaWPF -Version 1.1.0
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.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MicaWPF --version 1.1.0
#r "nuget: MicaWPF, 1.1.0"
#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.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>

NuGet NuGet(preview) NuGet(download) License

</div>

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 (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 332 5/9/2024
6.2.7 641 2/12/2024
6.2.6 195 1/31/2024
6.2.5 345 1/9/2024
6.2.4 272 1/8/2024
6.2.3 283 1/8/2024
6.2.2 261 1/8/2024
6.2.1 808 11/14/2023
6.2.0 321 11/14/2023
6.1.3 1,162 7/21/2023
6.1.2 658 7/21/2023
6.1.1 698 7/19/2023
6.1.0 710 7/14/2023
6.0.0 681 7/13/2023
5.3.2 730 7/13/2023
5.3.1 873 6/2/2023
5.3.0 1,170 3/22/2023
5.2.9 866 3/22/2023
5.2.8 824 3/22/2023
5.2.7 860 3/22/2023
5.2.6 877 3/20/2023
5.2.5 876 3/18/2023
5.2.4 885 3/17/2023
5.2.3 913 3/17/2023
5.2.2 856 3/17/2023
5.2.1 866 3/10/2023
5.2.0 877 3/4/2023
5.1.1 839 3/3/2023
5.1.0 841 3/3/2023
5.0.0 882 3/3/2023
4.8.19 960 2/10/2023
4.8.18 974 1/20/2023
4.8.17 972 1/19/2023
4.8.16 962 1/16/2023
4.8.15 934 1/16/2023
4.8.13 935 1/16/2023
4.8.12 1,021 1/10/2023
4.8.10 1,026 12/7/2022
4.8.9 938 12/7/2022
4.8.8 1,014 12/2/2022
4.8.7 921 11/30/2022
4.8.6 1,039 11/17/2022
4.8.5 963 11/17/2022
4.8.4 1,049 11/17/2022
4.8.3 1,763 11/10/2022
4.8.2 1,055 11/9/2022
4.8.1 1,043 11/8/2022
4.8.0 1,071 10/30/2022
4.7.1 1,157 10/20/2022
4.7.0 1,153 10/19/2022
4.6.2 1,230 9/16/2022
4.6.1 1,167 9/14/2022
4.6.0 1,109 9/14/2022
4.5.2 1,075 9/14/2022
4.5.1 1,052 9/13/2022
4.5.0 1,088 9/13/2022
4.4.1 1,087 9/7/2022
4.4.0 1,090 8/26/2022
4.3.3 1,086 8/26/2022
4.3.2 1,059 8/26/2022
4.3.1 1,077 8/25/2022
4.3.0 1,088 8/24/2022
4.2.15 1,028 8/23/2022
4.2.13 1,060 8/23/2022
4.2.12 1,057 8/19/2022
4.2.11 1,081 8/19/2022
4.2.10 1,122 8/19/2022
4.2.9 1,047 8/18/2022
4.2.8 1,082 8/18/2022
4.2.7 1,056 8/18/2022
4.2.6 1,068 8/18/2022
4.2.5 1,104 8/18/2022
4.2.4 1,048 8/18/2022
4.2.3 1,026 8/18/2022
4.2.2 1,037 8/18/2022
4.2.1 1,113 8/11/2022
4.2.0 1,035 8/11/2022
4.1.18 967 1/20/2023
4.1.14 981 1/16/2023
4.1.7 1,099 8/11/2022
4.1.6 1,087 8/10/2022
4.1.5 1,037 8/10/2022
4.1.4 1,002 8/10/2022
4.1.3 1,020 8/10/2022
4.1.2 1,042 8/9/2022
4.1.1 1,091 8/9/2022
4.1.0 1,081 8/9/2022
4.0.12 1,092 8/3/2022
4.0.11 1,030 7/29/2022
4.0.10 1,007 7/29/2022
4.0.9 1,065 7/29/2022
4.0.8 1,055 7/29/2022
4.0.7 1,096 7/28/2022
4.0.6 1,035 7/28/2022
4.0.5 1,070 7/28/2022
4.0.4 1,049 7/28/2022
4.0.3 1,084 7/28/2022
4.0.2 1,036 7/27/2022
4.0.1 1,095 7/27/2022
4.0.0 1,089 7/27/2022
3.1.48 1,247 7/27/2022
3.1.47 1,266 7/27/2022
3.1.46 1,274 7/27/2022
3.1.45 1,303 7/27/2022
3.1.44 1,281 7/27/2022
3.1.43 1,318 7/27/2022
3.1.42 1,246 7/27/2022
3.1.41 1,272 7/27/2022
3.1.40 1,247 7/26/2022
3.1.39 1,279 7/26/2022
3.1.38 1,283 7/21/2022
3.1.37 1,217 7/21/2022
3.1.36 1,278 7/18/2022
3.1.35 1,330 7/5/2022
3.1.34 1,295 7/5/2022
3.1.33 1,268 7/5/2022
3.1.32 1,266 7/5/2022
3.1.31 1,288 7/4/2022
3.1.30 1,312 7/4/2022
3.1.29 1,305 6/30/2022
3.1.28 1,264 6/28/2022
3.1.27 1,411 5/19/2022
3.1.26 1,375 5/16/2022
3.1.25 1,251 5/16/2022
3.1.24 1,311 5/16/2022
3.1.23 1,236 5/16/2022
3.1.22 1,331 5/15/2022
3.1.21 1,313 5/15/2022
3.1.20 1,257 5/15/2022
3.1.19 1,291 5/15/2022
3.1.16 1,349 5/13/2022
3.1.15 1,370 5/13/2022
3.1.14 1,059 5/13/2022
3.1.4 1,043 5/12/2022
3.1.3 1,050 5/12/2022
3.1.1 1,115 5/4/2022
3.1.0 1,050 5/4/2022
3.0.11 1,085 5/3/2022
3.0.10 1,091 5/3/2022
3.0.8 1,039 5/3/2022
3.0.7 1,072 5/3/2022
3.0.6 1,049 5/3/2022
3.0.1 1,334 5/3/2022
2.0.1 1,274 5/2/2022
2.0.0 808 4/9/2022
1.3.11 724 4/6/2022
1.3.8 731 4/6/2022
1.3.7 704 4/6/2022
1.3.5 701 4/6/2022
1.3.4 1,308 1/31/2022
1.3.3 725 1/31/2022
1.3.2 636 12/17/2021
1.3.1 569 12/17/2021
1.3.0 582 12/17/2021
1.2.1 665 11/2/2021
1.1.15 597 11/1/2021
1.1.14 599 11/1/2021
1.1.13 606 11/1/2021
1.1.12 612 11/1/2021
1.1.11 629 11/1/2021
1.1.9 620 10/31/2021
1.1.8 654 10/31/2021
1.1.7 653 10/31/2021
1.1.6 787 10/31/2021
1.1.5 747 10/31/2021
1.1.3 622 10/31/2021
1.1.2 594 10/29/2021
1.1.1 760 10/29/2021
1.1.0 783 10/29/2021
1.0.2 744 10/29/2021
1.0.1 756 10/29/2021
1.0.0 725 10/29/2021