Border.CornerRadius Border.CornerRadius Border.CornerRadius Border.CornerRadius Property

定義

Border の角の丸みの程度を表す値を取得または設定します。Gets or sets a value that represents the degree to which the corners of a Border are rounded.

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

プロパティ値

角の丸みの程度を表す CornerRadiusThe CornerRadius that describes the degree to which corners are rounded. このプロパティには既定値はありません。This property has no default value.

次の例では、このプロパティの値を設定する方法を示します。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">

注釈

このプロパティの名前は単数形の値のみを使用することが記載されていますCornerRadius以外、均一の半径もサポートしています。Although the property name suggests that you can use only singular values, CornerRadius also supports non-uniform radii. 大きすぎて半径値は、blend の隅から隅にスムーズにできるようにスケーリングされます。Radius values that are too large are scaled so that they blend smoothly from corner to corner.

依存プロパティ情報Dependency Property Information

識別子フィールドです。Identifier field CornerRadiusProperty
メタデータのプロパティを設定するには trueMetadata properties set to true AffectsMeasureAffectsRenderAffectsMeasure, AffectsRender

適用対象

こちらもご覧ください