Border.BorderThickness Border.BorderThickness Border.BorderThickness Border.BorderThickness Property

Definition

Ruft den relativen Thickness-Wert eines Border-Objekts ab oder legt diesen fest.Gets or sets the relative Thickness of a Border.

public:
 property System::Windows::Thickness BorderThickness { System::Windows::Thickness get(); void set(System::Windows::Thickness value); };
public System.Windows.Thickness BorderThickness { get; set; }
member this.BorderThickness : System.Windows.Thickness with get, set
Public Property BorderThickness As Thickness

Eigenschaftswert

Der Thickness-Wert, der die Breite der Berandungen des Border-Objekts beschreibt.The Thickness that describes the width of the boundaries of the Border. Diese Eigenschaft hat keinen Standardwert.This property has no default value.

Beispiele

Im folgenden Beispiel wird gezeigt, wie der Wert dieser Eigenschaft festgelegt wird.The following example shows how to set the value of this property.

myBorder1 = new Border();
myBorder1.BorderBrush = Brushes.SlateBlue;
myBorder1.BorderThickness = new Thickness(5, 10, 15, 20);
myBorder1.Background = Brushes.AliceBlue;
myBorder1.Padding = new Thickness(5);
myBorder1.CornerRadius = new CornerRadius(15);
Dim myBorder1 As New Border()
myBorder1.BorderBrush = Brushes.SlateBlue
myBorder1.BorderThickness = New Thickness(5, 10, 15, 20)
myBorder1.Background = Brushes.AliceBlue
myBorder1.Padding = New Thickness(5)
myBorder1.CornerRadius = New CornerRadius(15)
<Border BorderBrush="SlateBlue" BorderThickness="5,10,15,20" Background="AliceBlue" Padding="5" CornerRadius="15">

Hinweise

Informationen zur AbhängigkeitseigenschaftDependency Property Information

BezeichnerfeldIdentifier field BorderThicknessProperty
Metadateneigenschaften auf true festgelegtMetadata properties set to true AffectsMeasure, AffectsRenderAffectsMeasure, AffectsRender

Gilt für: