PasswordBox Control

Styles

Style Key Semantic Alias IsDefaultStyle*
MaterialFilledPasswordBoxStyle FilledPasswordBoxStyle
MaterialOutlinedPasswordBoxStyle OutlinedPasswordBoxStyle True
MaterialDefaultPasswordBoxStyle True

IsDefaultStyle*: Styles in this column will be set as the default implicit style for the matching control

Lightweight Styling

Themed

Key Type Light
DownscaledHeaderCompositeTransformScaleX Double 0.7
DownscaledHeaderCompositeTransformScaleY Double 0.7
DownscaledHeaderHeaderCompositeTransformTranslateY Double -11
DownscaledHeaderPasswordCompositeTransformTranslateY Double 8
DownscaledHeaderPlaceholderTextCompositeTransformTranslateY Double 8
FilledPasswordBoxBackground SolidColorBrush SurfaceVariantBrush
FilledPasswordBoxBackgroundDisabled SolidColorBrush OnSurfaceDisabledBrush
FilledPasswordBoxBackgroundFocused SolidColorBrush SurfaceVariantBrush
FilledPasswordBoxBackgroundPointerOver SolidColorBrush OnSurfaceVariantHoverBrush
FilledPasswordBoxBorderBrush SolidColorBrush OnSurfaceVariantBrush
FilledPasswordBoxBorderBrushDisabled SolidColorBrush OnSurfaceDisabledBrush
FilledPasswordBoxBorderBrushFocused SolidColorBrush PrimaryBrush
FilledPasswordBoxBorderBrushPointerOver SolidColorBrush OnSurfaceBrush
FilledPasswordBoxBorderHeightFocused Double 2
FilledPasswordBoxBorderHeightPointerOver Double 2
FilledPasswordBoxCharacterSpacing Int32 BodyLargeCharacterSpacing
FilledPasswordBoxCornerRadius CornerRadius 4,4,0,0
FilledPasswordBoxFontFamily FontFamily BodyLargeFontFamily
FilledPasswordBoxFontSize Double BodyLargeFontSize
FilledPasswordBoxFontWeight String BodyLargeFontWeight
FilledPasswordBoxForeground SolidColorBrush OnSurfaceBrush
FilledPasswordBoxForegroundDisabled SolidColorBrush OnSurfaceBrush
FilledPasswordBoxForegroundFocused SolidColorBrush OnSurfaceBrush
FilledPasswordBoxForegroundOpacityDisabled Double LowOpacity
FilledPasswordBoxForegroundPointerOver SolidColorBrush OnSurfaceBrush
FilledPasswordBoxHeaderForeground SolidColorBrush OnSurfaceVariantBrush
FilledPasswordBoxHeaderForegroundDisabled SolidColorBrush OnSurfaceLowBrush
FilledPasswordBoxHeaderForegroundFocused SolidColorBrush PrimaryBrush
FilledPasswordBoxHeaderForegroundPointerOver SolidColorBrush OnSurfaceVariantBrush
FilledPasswordBoxMinHeight Double 56
FilledPasswordBoxPadding Thickness 16,4,8,4
FilledPasswordBoxPlaceholderForeground SolidColorBrush OnSurfaceVariantBrush
FilledPasswordBoxPlaceholderForegroundDisabled SolidColorBrush OnSurfaceLowBrush
FilledPasswordBoxPlaceholderForegroundFocused SolidColorBrush OnSurfaceBrush
FilledPasswordBoxPlaceholderForegroundPointerOver SolidColorBrush OnSurfaceVariantBrush
FilledPasswordBoxRevealButtonForeground SolidColorBrush OnSurfaceVariantBrush
OutlinedPasswordBoxBackground SolidColorBrush SystemControlTransparentBrush
OutlinedPasswordBoxBackgroundDisabled SolidColorBrush SystemControlTransparentBrush
OutlinedPasswordBoxBackgroundFocused SolidColorBrush SystemControlTransparentBrush
OutlinedPasswordBoxBackgroundPointerOver SolidColorBrush SystemControlTransparentBrush
OutlinedPasswordBoxBorderBrush SolidColorBrush OutlineBrush
OutlinedPasswordBoxBorderBrushDisabled SolidColorBrush OnSurfaceDisabledBrush
OutlinedPasswordBoxBorderBrushFocused SolidColorBrush PrimaryBrush
OutlinedPasswordBoxBorderBrushPointerOver SolidColorBrush OnSurfaceBrush
OutlinedPasswordBoxBorderThickness Thickness 1
OutlinedPasswordBoxBorderThicknessFocused Thickness 2
OutlinedPasswordBoxBorderThicknessPointerOver Thickness 1
OutlinedPasswordBoxCharacterSpacing Int32 BodyLargeCharacterSpacing
OutlinedPasswordBoxCornerRadius CornerRadius 4
OutlinedPasswordBoxFontFamily FontFamily BodyLargeFontFamily
OutlinedPasswordBoxFontSize Double BodyLargeFontSize
OutlinedPasswordBoxFontWeight String BodyLargeFontWeight
OutlinedPasswordBoxForeground SolidColorBrush OnSurfaceBrush
OutlinedPasswordBoxForegroundDisabled SolidColorBrush OnSurfaceBrush
OutlinedPasswordBoxForegroundFocused SolidColorBrush OnSurfaceBrush
OutlinedPasswordBoxForegroundOpacityDisabled Double LowOpacity
OutlinedPasswordBoxForegroundPointerOver SolidColorBrush OnSurfaceBrush
OutlinedPasswordBoxHeaderForeground SolidColorBrush OnSurfaceVariantBrush
OutlinedPasswordBoxHeaderForegroundDisabled SolidColorBrush OnSurfaceLowBrush
OutlinedPasswordBoxHeaderForegroundFocused SolidColorBrush PrimaryBrush
OutlinedPasswordBoxHeaderForegroundPointerOver SolidColorBrush OnSurfaceVariantBrush
OutlinedPasswordBoxMinHeight Double 58
OutlinedPasswordBoxPadding Thickness Space100HorizontalThickness
OutlinedPasswordBoxPlaceholderForeground SolidColorBrush OnSurfaceVariantBrush
OutlinedPasswordBoxPlaceholderForegroundDisabled SolidColorBrush OnSurfaceLowBrush
OutlinedPasswordBoxPlaceholderForegroundFocused SolidColorBrush OnSurfaceBrush
OutlinedPasswordBoxPlaceholderForegroundPointerOver SolidColorBrush OnSurfaceBrush
PasswordBoxLeadingIconForeground SolidColorBrush OnSurfaceVariantBrush
PasswordBoxLeadingIconForegroundDisabled SolidColorBrush OnSurfaceLowBrush
PasswordBoxRevealButtonForeground SolidColorBrush OnSurfaceVariantBrush
PasswordBoxRevealGlyphPathData String M11 0.5C6 0.5 1.73 3.61 0 8C1.73 12.39 6 15.5 11 15.5C16 15.5 20.27 12.39 22 8C20.27 3.61 16 0.5 11 0.5ZM11 13C8.24 13 6 10.76 6 8C6 5.24 8.24 3 11 3C13.76 3 16 5.24 16 8C16 10.76 13.76 13 11 13ZM11 5C9.34 5 8 6.34 8 8C8 9.66 9.34 11 11 11C12.66 11 14 9.66 14 8C14 6.34 12.66 5 11 5Z

The Dark theme uses the same values as Light.