WPF.CornerSmoothing 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package WPF.CornerSmoothing --version 1.0.2                
NuGet\Install-Package WPF.CornerSmoothing -Version 1.0.2                
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="WPF.CornerSmoothing" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPF.CornerSmoothing --version 1.0.2                
#r "nuget: WPF.CornerSmoothing, 1.0.2"                
#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 WPF.CornerSmoothing as a Cake Addin
#addin nuget:?package=WPF.CornerSmoothing&version=1.0.2

// Install WPF.CornerSmoothing as a Cake Tool
#tool nuget:?package=WPF.CornerSmoothing&version=1.0.2                

WPF.CornerSmoothing

WPF Border Container with Corner Smoothing (Figma style Corner Smoothing using Squircle)

Installing WPF.CornerSmoothing

You should install WPF.CornerSmoothing with NuGet:

Install-Package WPF.CornerSmoothing

Or via the .NET Core command line interface:

dotnet add package WPF.CornerSmoothing

Either commands, from Package Manager Console or .NET Core CLI, will download and install WPF.CornerSmoothing and all required dependencies.

Instruction

To use add namespace to your control:

xmlns:cs="clr-namespace:WPF.CornerSmoothing;assembly=WPF.CornerSmoothing"

Then use SmoothBorder control:

<cs:SmoothBorder Width="200"
                Height="200"
                Padding="15"
                CornerRadius="50"
                CornerSmoothing="1"
                ClipContent="True"
                BorderBrush="#7F000000"
                BorderThickness="10"
                Background="#FFFD74C8"
                >
    <Rectangle Fill="#FF9093FF" />
</cs:SmoothBorder>

Where:

  • CornerSmoothing (value from 0 to 1) 0.1=10%, 1=100% Figma's Corner smoothing, 0 is equals standart Border Corners
  • ClipContent (boolean True/False ) Enable Content Clip to to have corners same as container with Padding and BorderThickness adjustements

Check Examples in the Demo project.

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

    • No dependencies.
  • net8.0-windows7.0

    • 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.4 68 9/18/2024
1.0.3 86 9/9/2024
1.0.2 96 8/10/2024
1.0.1 90 8/8/2024
1.0.0 88 8/8/2024
0.1.4 68 8/7/2024
0.1.3 70 8/7/2024
0.1.2 60 8/5/2024
0.1.0 56 8/5/2024
0.0.1 55 8/5/2024