WinUI3 textbox clear all button color change

Smrithi Surendran 61 Reputation points
2022-12-20T09:16:12.243+00:00

I want to change the clear all button color from black to white in a textbox.

Please help me here with xaml.
272366-image.png

Windows development | Windows App SDK
0 comments No comments
{count} votes

Answer accepted by question author
  1. Castorix31 91,511 Reputation points
    2022-12-20T11:24:11.987+00:00

    You can copy/rename/edit the style from generic.xaml
    For example, I copied DefaultTextBoxStyle to App.xaml, renamed it and added Foreground="Red" inside <TextBlock x:Name="GlyphElement" (then I used the new name Style ="{StaticResource DefaultTextBoxStyle2}" in a TextBox)

    272472-textbox-style.gif


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.