WPF.CornerSmoothing
0.1.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package WPF.CornerSmoothing --version 0.1.4
NuGet\Install-Package WPF.CornerSmoothing -Version 0.1.4
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="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPF.CornerSmoothing --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WPF.CornerSmoothing, 0.1.4"
#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=0.1.4 // Install WPF.CornerSmoothing as a Cake Tool #tool nuget:?package=WPF.CornerSmoothing&version=0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 from0
to1
)0.1=10%
,1=100%
Figma's Corner smoothing,0
is equals standart Border CornersClipContent
(booleanTrue
/False
) Enable Content Clip to to have corners same as container with Padding and BorderThickness adjustements
Check Examples in the Demo project.
Product | Versions 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.