Closed FrankVDL2471 closed 9 months ago
Please add relevant code
`public class SjwingEntry : FreakyTextInputLayout {
public SjwingEntry() {
this.BorderCornerRadius = 5;
this.BorderStrokeThickness = 2;
this.BorderStroke = Brush.DarkGray;
this.BackgroundColor = Colors.White;
this.TextColor = Colors.Black;
this.FontFamily = "Default";
this.FontSize = 16;
}
}`
I was going to release it today so you are in luck, I have made a pre-release v0.4.10-pre. Check if that fixes your bug, if not you can reopen this.
Just testes with the pre-release, but the problem is still the same. Don't know if it makes a difference, but I have the dark-theme activated
There should be a property by the name of ControlBackgroundColor
use that
The ControlBackgroundColor does the trick
One remark, the ControlBackgroundColor and TextColor can't be set using a Style
`
<Setter Property="FontSize" Value="16" />
<Setter Property="HorizontalTextAlignment" Value="Start" />
<Setter Property="VerticalTextAlignment" Value="Center" />
<Setter Property="ControlBackgroundColor " Value="{xct:AppThemeResource Color_Background_Frame}" />
<Setter Property="TextColor" Value="{xct:AppThemeResource Color_ExtraDark}" />
</Style>
`
the controlbackgroundcolor property throws the following error
Error XFC0001 Cannot resolve property "ControlBackgroundColor " on type "FreakyTextInputLayout (property missing or missing accessors)"
The textcolor does not throw an error but is not applied
Interesting, I'll see if I can do something about it later, for now I hope this is good enough
Yes, I'll set the colors outside the style as a workaround
Description
When setting a background color and a bordercorner radius, the background color is visible in the corners outside the border.
Expected Behavior
Make the area outside the border transparant
Actual Behavior
Background is colored
Basic information
Package Version : 0.4.9 OS : Android 12
Screenshots