PasswordBox.CaretBrush 속성

정의

암호 상자의 캐럿 색을 지정하는 브러시를 가져오거나 설정합니다.

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

속성 값

Brush

암호 상자의 캐럿 색을 설명하는 브러시입니다.

예제

다음 예제에서는 a를 PasswordBox 만들고 빨간색 Foreground 으로 CaretBrush 설정합니다.

<PasswordBox SelectionBrush="Green" SelectionOpacity="0.5" 
             Foreground="Red" CaretBrush="Red"/>

앞의 예제에서는 다음 그림과 유사한 출력을 생성합니다.

CaretBrush가 빨간색으로 설정된 PasswordBox
CaretBrush가 빨간색으로 설정된 PasswordBox

설명

캐럿의 CaretBrush 색을 지정하도록 a PasswordBox 속성을 설정할 수 있습니다. 예를 들어 속성과 동일한 값으로 Foreground 설정할 CaretBrush 수 있습니다. Foreground 는 에 있는 문자의 PasswordChar 색을 PasswordBox나타냅니다.

적용 대상