DropShadowBitmapEffect.Softness Property

Definition

Note: This API is now obsolete. The non-obsolete alternative is DropShadowEffect. Gets or sets the softness of the shadow.

C#
public double Softness { get; set; }

Property Value

The shadow's softness. The valid range of values is from 0 through 1. A value of 0.0 indicates no softness (a sharply defined shadow) and 1.0 indicates maximum softness (a very diffused shadow). A value of 0.5 indicates 50 percent softness, a value of 0.75 indicates 75 percent softness, and so on. The default is 0.5.

Remarks

The following illustration demonstrates the effect of this property.

Screenshot: Compare Softness property values

Dependency Property Information

Item Value
Identifier field SoftnessProperty
Metadata properties set to true None

Applies to

Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10