Color legend plain property dependency property method
A frame around one Content element, drawn in a solid color or from eight textures.
Border derives from BaseElement and has its members too. The layout page shows it in context, with code and screenshots.
Names are colored by what they are: a plain property, a method, an event or a dependency property, which a style, a binding or an animation can set.
Properties
Content 馃爢
BaseElement 路 The element inside the frame. A style can鈥檛 set it.
ContentAreaMargin 馃爢
Margin? 路 The inset of the content area (the background and the content) from the border鈥檚 outer edges, used instead of Thickness. Smaller than the thickness, it lets the background reach under the frame鈥檚 transparent pixels. Null (the default) insets the content area by the thickness. Called Padding before 2.0.0; for space between the frame and the content, give the content a Margin.
GeneralMouseCursorsSet 馃爢
MouseCursorsSet 路 Static. The cursors of every element of this style type; null (the default) falls back to DefaultMouseCursorsSet.
GeneralStyle 馃爢
BorderStyle 路 Static. The style of every element of this style type. It starts as a copy of the framework defaults; changing one of its properties updates every such element, a property it leaves unset takes its default.
MouseCursorsSet 馃爢
MouseCursorsSet 路 Read-only. The cursors the element shows: its override, else the set given to the control it is a part of, else its type鈥檚 general set, else DefaultMouseCursorsSet.
MouseCursorsSetOverride 馃爢
MouseCursorsSet 路 The cursors of this element only, passed on to its parts that have none of their own.
StyleOverride 馃爢
BorderStyle 路 A style for this element only, applied over the general style. Setting it to null takes its values back out.
Thickness 馃爢
Margin 路 The width of the frame per side (Left, Top, Right, Bottom), in units. 1 on every side unless set (DefaultSettings.DefaultBorderThickness).
Methods
Border() 馃爢
Border(string name = null) 路 Creates a border. The name is used by GetElementByName.
| Parameter | Type | Description |
|---|---|---|
name |
string |
The element鈥檚 Name, which GetElementByName finds it by. Default: null. |