Skip to content
Discussion options

You must be logged in to vote

Hi @LeoJHarris

Hi Leo,

You can customize the SfOtpInput stroke colors by overriding the resource keys in App.xaml:

Here's a sample of how you can achieve this:

<Application.Resources>
    <ResourceDictionary>
       <Color x:Key="SfOtpInputSuccessStroke">LightGreen</Color>
       <Color x:Key="SfOtpInputErrorStroke">Orange</Color>
       <Color x:Key="SfOtpInputWarningStroke">Yellow</Color>
    </ResourceDictionary>
</Application.Resources>

Note: This applies application-wide. For local overrides, define these keys in your Page resources instead.

Let us know if you need further help!

Regards,
Naveenkumar S

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LeoJHarris
Comment options

Answer selected by LeoJHarris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants