FontSource Property
Collapse the table of content
Expand the table of content

PasswordBox.FontSource Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the font source that is applied to the password box for rendering content.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Property FontSource As FontSource

Property Value

Type: System.Windows.Documents.FontSource
The font source used to render content in the text box. The default is Nothing.

ExceptionCondition
ArgumentOutOfRangeException

The value set is not a valid source.

Setting this property to Nothing will clear out any previously assigned FontSource property causing the PasswordBox to update its rending without any custom font source.

This property is not available in XAML.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft