MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.02k stars 3.41k forks source link

Textbox showing char count and max length #2345

Closed Jonesie closed 3 years ago

Jonesie commented 3 years ago

In v 4.1 Im seeing a character count / maxlength thing under text boxes:

Screenshot from 2021-06-09 13-44-20

This was not there in v 3. I dont know what this is called so maybe it's a new feature but I really want it gone.

XAML is:

            <TextBox Margin="4 0" MaxLength="8"
              VerticalAlignment="Center"
               Visibility="{Binding Disconnected, Converter={StaticResource BoolToVis}}" Width="120">
              <Binding Path="ConnectionCode" UpdateSourceTrigger="PropertyChanged"/>
            </TextBox>
Keboo commented 3 years ago

There is an attached property you can set on the TextBox to hide it:

materialDesign:TextFieldAssist.CharacterCounterVisibility="Collapsed"

Related: #2247

Jonesie commented 3 years ago

There is an attached property you can set on the TextBox to hide it:

materialDesign:TextFieldAssist.CharacterCounterVisibility="Collapsed"

Related: #2247

Sweet thank u