Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<converters:NotConverter x:Key="NotConverter" />
<converters:MathConverter x:Key="MathMultiplyConverter" Operation="Multiply" />
<converters:FloatingHintOffsetCalculationConverter x:Key="FloatingHintOffsetCalculationConverter" />
<converters:CursorConverter x:Key="ArrowCursorConverter" FallbackCursor="Arrow" />
<converters:CursorConverter x:Key="IBeamCursorConverter" FallbackCursor="IBeam" />

<Style x:Key="MaterialDesignPasswordBox" TargetType="{x:Type PasswordBox}">
<Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" />
Expand All @@ -35,15 +37,14 @@
<Setter Property="wpf:TextFieldAssist.UnderlineBrush" Value="{DynamicResource PrimaryHueMidBrush}" />
<Setter Property="wpf:HintAssist.Foreground" Value="{DynamicResource PrimaryHueMidBrush}" />
<Setter Property="ContextMenu" Value="{StaticResource MaterialDesignDefaultContextMenu}" />
<Setter Property="Cursor" Value="Arrow" />
<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
<Setter Property="FontFamily" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.FontFamily)}" />
<Setter Property="PasswordChar" Value="●" />
<Setter Property="internal:ClearText.HandlesClearCommand" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type PasswordBox}">
<Grid>
<Grid Cursor="{TemplateBinding Cursor, Converter={StaticResource ArrowCursorConverter}}">
<Border
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Expand Down Expand Up @@ -92,7 +93,7 @@
Grid.Column="1"
Panel.ZIndex="1"
wpf:ScrollViewerAssist.IgnorePadding="True"
Cursor="IBeam"
Cursor="{TemplateBinding Cursor, Converter={StaticResource IBeamCursorConverter}}"
Focusable="false"
HorizontalScrollBarVisibility="Hidden"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
Expand Down