MaterialDesignInXAML / MaterialDesignInXamlToolkit

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

Weird black sidebars on SmartHints #3700

Open LenkaFT opened 2 days ago

LenkaFT commented 2 days ago

Bug explanation

We've been using materialDesign for wpf for a while now but since the last update those TextBox:

https://i.sstatic.net/Hlk9BM2O.png

That looks like this in our XML:

<TextBox Grid.Row="1" Style="{StaticResource MaterialDesignOutlinedTextBox}" GotFocus="SizeTextBox_GotFocus" LostFocus="TextBox_LostFocus" PreviewKeyDown="TextBox_PreviewKeyDown" materialDesign:HintAssist.Hint="{x:Static p:Resources.Height}" FontSize="25" Height="60" Padding="10" Margin="20" materialDesign:TextFieldAssist.SuffixText="{Binding Unit, Converter={StaticResource UnitAbbreviation}}" BorderBrush="{StaticResource PrimaryColorBrush}" materialDesign:HintAssist.Background="{StaticResource ThirdColorBrush}" materialDesign:ValidationAssist.Background="{StaticResource ThirdColorBrush}">

<TextBox.Text>
    <Binding Path="SelectedParameter.Height" UpdateSourceTrigger="Explicit">
        <Binding.ValidationRules>
        <utility:NumericValidationRule/>
        </Binding.ValidationRules>
    </Binding>
</TextBox.Text>

have those weird black sidebars.

I tried to modify each and everyone props you can access through materialDesign:HintAssist but nothing did the trick.

I also tried to use this to modify the hint :

`

` It seems I can modify some stuff, mostly props accessible through HintAssist, but setting some other properties doesn't change a thing, margin and padding do nothing for example. Sorry if that's not a bug but me using a materialStyle i shouldn't associate with hints or something else, but it looks like a bug. ### Version 4.5
LenkaFT commented 2 days ago

Sorry wrong code :

<TextBox Grid.Row="1" Style="{StaticResource MaterialDesignOutlinedTextBox}" GotFocus="SizeTextBox_GotFocus" LostFocus="TextBox_LostFocus" PreviewKeyDown="TextBox_PreviewKeyDown" materialDesign:HintAssist.Hint="{x:Static p:Resources.Height}" FontSize="25" Height="60" Padding="10" Margin="20" materialDesign:TextFieldAssist.SuffixText="{Binding Unit, Converter={StaticResource UnitAbbreviation}}" BorderBrush="{StaticResource PrimaryColorBrush}" materialDesign:HintAssist.Background="{StaticResource ThirdColorBrush}" materialDesign:ValidationAssist.Background="{StaticResource ThirdColorBrush}">

corvinsz commented 2 days ago

@LenkaFT I'm not sure if I understand your problem correctly because of multiple reasons:

Is your problem similar to this issue (3262)? If so, @nicolaihenriksen has a good explanation on it (here). Also have you tried upgrading to the latest version (currently 5.1.0) and see if the bug persists?

FYI: You can edit your comments on GitHub