KavyBodarya.GlassMorphism 1.0.1

dotnet add package KavyBodarya.GlassMorphism --version 1.0.1
                    
NuGet\Install-Package KavyBodarya.GlassMorphism -Version 1.0.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="KavyBodarya.GlassMorphism" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KavyBodarya.GlassMorphism" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="KavyBodarya.GlassMorphism" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KavyBodarya.GlassMorphism --version 1.0.1
                    
#r "nuget: KavyBodarya.GlassMorphism, 1.0.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.
#:package KavyBodarya.GlassMorphism@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KavyBodarya.GlassMorphism&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=KavyBodarya.GlassMorphism&version=1.0.1
                    
Install as a Cake Tool

πŸ‰ Welcome to the Magic Dragon Glass Library! πŸ‰ Hey there, friend! Do you want to turn your boring, flat buttons into shiny, magical pieces of glass? You've come to the right place! With this library, you can make your app look like it was made by the wizards at Apple.

Follow this guide to start your dragon-glass adventure!

πŸ›  How to Set Up Your Magic Before we can use the glass, we have to tell our app where the dragon lives. Put this "secret spell" at the very top of your MainWindow.xaml file:

xmlns:glass="clr-namespace:GlassMorphism;assembly=GlassMorphism"

✨ The Magic Words (Syntax) To make a button turn into glass, you only need to add one special tag inside your button code!

  1. Turn on the Glass πŸͺ„ Add glass:GlassTheme.Enable="True". Poof! Your button is now a shiny glass pill!

  2. Change the Color 🎨 Want blue glass? Red glass? Just use the Background tag.

Note: Use "8 numbers" to keep it see-through. The first two (like 80) are the "ghost power" (transparency).

  1. Make it "Vintage" (Old & Dusty) πŸ•°οΈ Want your glass to look like it's from a dragon's cave? Use glass:GlassTheme.Vintage="0.5".

0.1 is a little dusty.

0.8 is very old and dark on the edges!

πŸ“š Fun Examples to Try! Here are some cool buttons you can copy and paste into your app to see the magic:

🧊 The Classic Apple Look This is the standard, beautiful white glass.

<Button glass:GlassTheme.Enable="True" 
        Content="Classic Glass" 
        Width="200" Height="40" />

πŸ”΄ The "Danger" Red Glass This one uses a red tint but stays shiny!

<Button glass:GlassTheme.Enable="True" 
        Background="#80FF0000" 
        Content="Don't Touch!" 
        Width="200" Height="40" />

πŸ“œ The Ancient Dragon Glass This uses the "Vintage" power to make the edges look dark and intense.

<Button glass:GlassTheme.Enable="True" 
        glass:GlassTheme.Vintage="0.7"
        Background="#40FFFFFF" 
        Content="Old Magic" 
        Width="200" Height="40" />

=== πŸ“ Important Dragon Rules Pill Shape: Your buttons will always be "pill-shaped" (very round) because that's how dragons like them!

Text Shadow: Don't worry if your background is whiteβ€”we added a tiny "shadow cape" to your text so you can always read it.

Clicky Feel: When you press the button, it actually "sinks" down into the screen. Try it!

Now go build something magical! πŸš€

Product Compatible and additional computed target framework versions.
.NET net8.0-windows10.0.17763 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows10.0.17763

    • No dependencies.

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.0.1 104 4/7/2026
1.0.0 106 4/7/2026