Class ShadowBorder
A Border to simulate a shadow effect
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class ShadowBorder : Border, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
Constructors
View SourceShadowBorder()
Default constructor
Declaration
public ShadowBorder()
Fields
View SourceDrawShadowOutsideControlProperty
the DependencyProperty of DrawShadowOutsideControl
Declaration
public static readonly DependencyProperty DrawShadowOutsideControlProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DrawShadowProperty
the DependencyProperty of DrawShadow
Declaration
public static readonly DependencyProperty DrawShadowProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
GradientStopOffsetProperty
the DependencyProperty of GradientStopOffset
Declaration
public static readonly DependencyProperty GradientStopOffsetProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
OffsetProperty
the DependencyProperty of Offset
Declaration
public static readonly DependencyProperty OffsetProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ShadowBackgroundProperty
the DependencyProperty of ShadowBackground
Declaration
public static readonly DependencyProperty ShadowBackgroundProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ShadowColorProperty
the DependencyProperty of ShadowColor
Declaration
public static readonly DependencyProperty ShadowColorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ShadowDepthProperty
the DependencyProperty of ShadowDepth
Declaration
public static readonly DependencyProperty ShadowDepthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ShadowDirectionProperty
the DependencyProperty of ShadowDirection
Declaration
public static readonly DependencyProperty ShadowDirectionProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceBottom
the bottom thickness
Declaration
public double Bottom { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
DrawShadow
Indicates whether the Shadow will be drawn
Declaration
public bool DrawShadow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DrawShadowOutsideControl
Indicates whether the Border will be drawn
Declaration
public bool DrawShadowOutsideControl { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
GradientStopOffset
the GradientOffset in edge brushes
Declaration
public double GradientStopOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Left
the left thickness
Declaration
public double Left { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Offset
offset oppsite of shadow direction
Declaration
public double Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Right
the right thickness
Declaration
public double Right { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ShadowBackground
the background color
Declaration
public Color ShadowBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ShadowColor
the shadow color
Declaration
public Color ShadowColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ShadowDepth
the shadow depth
Declaration
public double ShadowDepth { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ShadowDirection
the shadow direction
Declaration
public ShadowDirection ShadowDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| ShadowDirection |
Top
the top thickness
Declaration
public double Top { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceOnRender(DrawingContext)
Zeichnet den Inhalt eines DrawingContext-Objekts während des Renderns einer Border.
Declaration
[SuppressMessage("Design", "CA1062:Validate arguments of public methods", Justification = "Parameter dc is never null")]
protected override void OnRender(DrawingContext dc)
Parameters
| Type | Name | Description |
|---|---|---|
| DrawingContext | dc | Der DrawingContext, der das zu zeichnende Objekt definiert. |