MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Weird black sidebars on SmartHints

Open LenkaFT opened this issue 1 year ago • 2 comments

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 :

<TextBox.Resources> <Style TargetType="{x:Type materialDesign:SmartHint}"> <Setter Property="Background" Value="red"/> </Style> </TextBox.Resources>

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 avatar Oct 18 '24 13:10 LenkaFT