Border
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Draws a border, background, or both around another object.
<Border ...>
singleChild
</Border>
-or-
<Border .../>
XAML Values
Value |
Description |
---|---|
singleChild |
A single object that derives from UIElement. These can be one or more of the following: Border, Canvas, Ellipse, Glyphs, Grid, Image, InkPresenter, Line, MediaElement, PasswordBox, Path, Polygon, Polyline, Rectangle, Shape, StackPanel, TextBlock, TextBox. |
Methods
AddEventListener, CaptureMouse, Equals, FindName (DependencyObject), GetHost, GetParent, GetValue, ReleaseMouseCapture, RemoveEventListener, SetValue
Properties
ActualHeight (UIElement), ActualWidth (UIElement), Background (Elements), BorderBrush, BorderThickness, Canvas.Left, Canvas.Top, Canvas.ZIndex, Child, Clip, CornerRadius (Border), Cursor, Effect (Silverlight 3), Grid.Column, Grid.ColumnSpan, Grid.Row, Grid.RowSpan, Height (UIElement), HorizontalAlignment, Language (UIElement), Margin, MaxHeight, MaxWidth, MinHeight, MinWidth, Name (DependencyObject), Opacity (UIElement), OpacityMask, Padding, Projection (Silverlight 3), RenderTransform, RenderTransformOrigin, Resources, Style (UIElement), Tag, TextOptions.TextHintingMode (Silverlight 3), Triggers, VerticalAlignment, Visibility, Width (UIElement)
Events
GotFocus, Loaded, LostFocus, MouseEnter, MouseLeave, MouseLeftButtonDown, MouseLeftButtonUp, MouseMove, MouseWheel (Silverlight 3)
Version Information
Silverlight 2