Text is not centered vertically on WinUI with latest Maui. The issue also affects NumericInput control as RadEntry is used internally.
A line going through the clear button of the RadEntry control. The behavior is reproduced on Android 9.0
Hi Team,
I need to be able to set the color of the selection highlight.
Can you please add a new top-level property on the .NET MAUI RadEntry control that allows us to set this?
Thank you,
Craig
When you've set IsPassword=True and have an initial value for Text, that value is ignored (only the watermark is shown).
Reproducible on .NET MAUI peview14 using UI for MAUI 0.6.0 with the following code
<telerik:RadEntry Placeholder="Password" Text="1234" IsPassword="True"/>
The Placeholder position is not in sync with the Entry's Text, it is always top-left aligned.
Here's a quick screenshot of what happens when the RadEntry is larger than the default.
This has the side effect of not being aligned with the Text.
There are several ways I can think of to approach this, but I think the easiest way would be to just bind the top level control's VerticalTextAlignment property value on the internal Label being used for the Placeholder
<telerik:RadEntry Placeholder="Name"
WidthRequest="280"
HeightRequest="100"
VerticalTextAlignment="End"/>
On Android: RadEntry and .NET Maui Entry behavior are identical. When unfocused, the focused background is still applied.
On WinUI: RadEntry and .NET Maui behavior when are unfocused, the focused background is still applied. When RadEntry is in the "Focused" and "PointerOver" visual states, the control behavior is with the default state. When .NET Maui Entry is in the "Focused" and "PointerOver" visual states, the control behavior is with the "PoinetOver" visual state.
On iOS and MacCatalys: When RadEntry is unfocused, the focused background is still applied.
When setting BorderBrush, BorderThickess, FocusedBorderBrush and FocusedBorderThickness do not apply on the entire entry control, they apply only on bottom.
<VerticalStackLayout>
<telerik:RadEntry Text="Hello World" TextColor="DarkRed"
Background="Wheat"
FocusedBorderBrush="Yellow"
FocusedBorderThickness="10"
x:Name="entry"
BorderBrush="DarkRed"
BorderThickness="8"
CornerRadius="5,7,7,5"
WidthRequest="150"/>
</VerticalStackLayout>
And the result:
Place the entry in a RadBorder:
<telerik:RadBorder BorderColor="Red"
CornerRadius="5,7,7,5"
BorderThickness="4,4,4,4">
<telerik:RadEntry Text="Hello World"
TextColor="DarkRed"
Background="Wheat"
x:Name="entry" />
</telerik:RadBorder>
On Windows when IsReadOnly state changes to true, the control state does not change, you can still edit the text.
Example:
<VerticalStackLayout >
<Switch IsToggled="{Binding IsReadOnly,Source={x:Reference EntryShareName}}"/>
<telerik:RadEntry x:Name="EntryShareName"
FontSize="14"
Placeholder="Enter text here"
PlaceholderColor="#99000000"
AutomationId="radEntry">
</telerik:RadEntry>
</VerticalStackLayout>
Hi Team,
I would like to be able to use standard .NET data annotations on my bound property with the RadEntry's validation features.
For example, the following MaxLength attribute:
[MaxLength(12)]
public string CustomerId
{
get => customerId;
set => SetProperty(ref customerId, value);
}
Thank you,
Mads