Control.BorderThickness 屬性

定義

取得或設定控制項的框線粗細。

public:
 property Thickness BorderThickness { Thickness get(); void set(Thickness value); };
Thickness BorderThickness();

void BorderThickness(Thickness value);
public Thickness BorderThickness { get; set; }
var thickness = control.borderThickness;
control.borderThickness = thickness;
Public Property BorderThickness As Thickness
<control BorderThickness="uniform"/>
- or -
<control BorderThickness="left&right,top&bottom"/>
- or -
<control BorderThickness="left,top,right,bottom"/>

屬性值

控件的框線粗細,做為 [粗細 ] 值。

備註

每個控件可能會根據其可視化範本以不同的方式套用此屬性。 此屬性只會影響範本使用 BorderThickness 屬性做為參數的控件。 在其他控件上,這個屬性沒有任何作用。 如需視覺效果範本的詳細資訊,請參閱 Template 屬性。

適用於

另請參閱