WPF.CornerSmoothing 1.0.0

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

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

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 110 9/18/2024
1.0.3 119 9/9/2024
1.0.2 122 8/10/2024
1.0.1 115 8/8/2024
1.0.0 112 8/8/2024
0.1.4 91 8/7/2024
0.1.3 93 8/7/2024
0.1.2 83 8/5/2024
0.1.0 83 8/5/2024
0.0.1 79 8/5/2024