ToolTip Border/Background Color

Richard Zhang-MSFT 6,936 Reputation points
2019-12-12T07:16:12.387+00:00

Source Link: MSDN

---

Hi ,

Please suggest how to remove hover background color for tootip UWP,after some seconds hovering with background white will appear

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2019-12-12T07:28:11.697+00:00

    Hi,

    From your description, maybe your application is not well adjusted ApplicationTheme.

    In UWP, if the theme of the app is not explicitly set, the theme of the app follows the system. You can try explicitly specifying the RequestedTheme property in the App constructor of App.xaml.cs.

    public App()  
    {  
        this.InitializeComponent();  
        this.Suspending += OnSuspending;  
        RequestedTheme = ApplicationTheme.Dark;  
    }  
    

    At this time, the background color of Tooltip will turn black.

    ---

    If you want to customize the display style of ToolTip, you can modify the default template of ToolTip

    Default Style

    Imgur

    Use

    Imgur

    Tips

    If you specify ToolTipService.ToolTip directly to the control, you cannot apply styles. You must create a ToolTip control.

    ---

    xaml code please see the txt file provided in the attachment

    Regarding the inability to insert XML Code, check out this linked solution

    Best regards.