The Entry control exposes a event after ClearButton click
Hello,
Even though I have set up VisualState for RadEntry as below; However, RadEntry always has a default background color of white when receiving focus (mouse click) - in WINDOWS platform, it only changes color as in the VisualState setting after moving the mouse out later. Please explain and guide how to solve the problem.
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="{AppThemeBinding Dark={StaticResource DarkMode_FrameBackground}, Light= {StaticResource LightMode_FrameBackground}}"/>
</VisualState.Setters>
</VisualState>
<VisualState x:Name="PointerOver">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="#336699"/>
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Focused">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="#336699" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
Hi All,
I just want to ask if it is possible to change the clear button icon in RadEntry? Currently, we have a feature that we need to display an exclamation point icon in the current clear button position if the user enters an invalid value. Also, upon pressing on that exclamation point, we need to display a pop up message.
Hi,
I'm trying to apply style for a disabled RadEntry in my current project but it is not working. Tried both styling from VisualStateManager and Style.Triggers but not working. Also strange that when I use the style from IsEnabled = true, the style is now working. Here's my code from Styles.xaml
<Style TargetType="telerik:RadEntry">
<Setter Property="FontFamily" Value="OpenSansRegular"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="TextColor" Value="{StaticResource FieldTextColor}" />
<Setter Property="BorderBrush" Value="{StaticResource FieldBorderBrushColor}"/>
<Setter Property="BorderThickness" Value="1,1,1,2"/>
<Setter Property="FocusedBorderBrush" Value="{StaticResource FieldBorderBrushColor}"/>
<Setter Property="BackgroundColor" Value="{StaticResource FieldBackgroundColor}"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal"/>
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="{StaticResource FieldInactiveColor}"></Setter>
<Setter Property="TextColor" Value="{StaticResource FieldTextInactiveColor}"></Setter>
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
<!--<Style.Triggers>
<Trigger TargetType="telerik:RadEntry" Property="IsEnabled" Value="False">
<Setter Property="BackgroundColor" Value="{StaticResource FieldInactiveColor}"/>
<Setter Property="TextColor" Value="{StaticResource FieldTextInactiveColor}"/>
</Trigger>
</Style.Triggers>-->
</Style>
Screenshot from the app:
Style should be like this
Hello,
I want to know if RadEntry has any property or functionality that allows me to remove the bottom line when editing the text
handlers.AddHandler(typeof(Telerik.Maui.Controls.RadEntry), typeof(RadEntryCustomHandler));
for ANDROID I have this Handler
public partial class RadEntryCustomHandler : RadEntryHandler
{
protected override void ConnectHandler(RadMauiEntry nativeView)
{
try
{
nativeView.EditText.TextCursorDrawable.SetColorFilter(new PorterDuffColorFilter(Graphics.Color.White, PorterDuff.Mode.Darken));
}
catch { }
}
}
for IOS I have this Handler
public class RadEntryCustomHandler : RadEntryHandler