Class Margin
public class Margin : Adornment, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable
- Inheritance
-
Margin
- Implements
- Inherited Members
Remarks
The Margin is transparent by default. This can be overriden by explicitly setting ColorScheme.
Margins are drawn after all other Views in the application View hierarchy are drawn.
See the Adornment class.
Constructors
- Margin(View)
Constructs a new adornment for the view specified by
parent
.
Properties
- ShadowStyle
Gets or sets whether the View is shown with a shadow effect. The shadow is drawn on the right and bottom sides of the Margin.
Methods
- BeginInit()
Signals the View that initialization is starting. See ISupportInitialize.
- GetFocusColor()
Determines the current ColorScheme based on the Enabled value.
- GetHotFocusColor()
Determines the current ColorScheme based on the Enabled value.
- GetHotNormalColor()
Determines the current ColorScheme based on the Enabled value.
- GetNormalColor()
Determines the current ColorScheme based on the Enabled value.
- OnClearingViewport()
Called when the Thickness of the Adornment is to be cleared.
- OnSettingNormalAttribute()
Called when the normal attribute for the View is to be set. This is called before the View is drawn.
- SetShadow(ShadowStyle)
Sets whether the Margin includes a shadow effect. The shadow is drawn on the right and bottom sides of the Margin.