WPF的UI库MaterialDesign里面的textbox设置最大长度后,会出现0/15这样的字,如何隐藏?
<TextBox x:Name="UserName" Padding="10,13,0,0" MaxLength="15" Width="290" Height="50" FontFamily="ArialMT" FontSize="24" Foreground="#FFFFFF"></TextBox>
回答
测试了一下
<Grid>
<TextBox materialDesign:TextFieldAssist.CharacterCounterVisibility="Collapsed" x:Name="UserName" Padding="10,13,0,0" MaxLength="15" Width="290" Height="50" FontFamily="ArialMT" FontSize="24" Foreground="#FFFFFF">ddddd</TextBox>
</Grid>
THE END
二维码