如何在 MaterialDesign 的 TextBox 底部隐藏字母计数器

How can I hide letter counter at the bottom of TextBox in MaterialDesign

在最新版本的 MaterialDesign WPF 中出现了这个问题。
有没有什么属性或者别的东西可以隐藏它?

代码:

<TextBox materialDesign:HintAssist.Hint="First Name" FontSize="18" Style="{StaticResource MaterialDesignFloatingHintTextBox}" MaxLength="50"/>

GitHub 上已经有关于如何隐藏字符计数器的问题。

已经确认在即将发布的版本中将有一种方法可以禁用它。

In the next release there will be a new attached property you can use to hide the character counter.

<TextBox
   MaxLength=""10""
   materialDesign:TextFieldAssist.CharacterCounterVisibility=""Collapsed""/>

与此同时,您可以降级到以前版本的 MaterialDesign,因为此功能是 introduced in version 4.0 or you can use the workaround suggested in the issue

<TextBox>
    <materialDesign:TextFieldAssist.CharacterCounterStyle>
        <Style TargetType="TextBlock" />
    </materialDesign:TextFieldAssist.CharacterCounterStyle>
</TextBox>