Drastic.MicaAcrylicWindows 1.1.0

dotnet add package Drastic.MicaAcrylicWindows --version 1.1.0                
NuGet\Install-Package Drastic.MicaAcrylicWindows -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="Drastic.MicaAcrylicWindows" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Drastic.MicaAcrylicWindows --version 1.1.0                
#r "nuget: Drastic.MicaAcrylicWindows, 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 Drastic.MicaAcrylicWindows as a Cake Addin
#addin nuget:?package=Drastic.MicaAcrylicWindows&version=1.1.0

// Install Drastic.MicaAcrylicWindows as a Cake Tool
#tool nuget:?package=Drastic.MicaAcrylicWindows&version=1.1.0                

Drastic.MicaAcrylicWindows

スクリーンショット 2022-06-04 223812

This is a simple library for creating a WinUI Window with a Acrylic or Mica style backdrop.

How to use

MicaWindow and AcyrlicWindow are Window types that can be used like any other WinUI Window. Just create one and fill it with content. Any other settings (Like extending the titlebar) can be done just as you would with any other Window.

From Code

  var window = new Drastic.UI.Xaml.MicaWindow() { };
  window.Activate();
  var window = new Drastic.UI.Xaml.AcyrlicWindow() { };
  window.Activate();

From XAML

Window.xaml

<drastic:MicaWindow
    xmlns:drastic="using:Drastic.UI.Xaml"
    x:Class="Drastic.MicaAcrylicWindows.Sample.TestWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Drastic.MicaAcrylicWindows.Sample"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
</drastic:MicaWindow>

Window.xaml.cs

using Drastic.UI.Xaml;

namespace Drastic.MicaAcrylicWindows.Sample
{
    public sealed partial class TestWindow : MicaWindow
    {
        public TestWindow()
        {
            this.InitializeComponent();
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET net6.0-windows10.0.19041 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 407 6/5/2022