I have create a control in WinUI3. Then, I give this control a UID(teachingTip) and write teachingTip.ToolTipService.Tooltip
and the sentences in .resw file. When I launch the app and place the mouse over the control, but nothing happened. I only find one document and changeteachingTip.ToolTipService.Tooltip
toteachingTip.[using:Windows.UI.Xaml.Controls]ToolTipService.Tooltip
. However,it doesn't work either.
Anyone could please help me to make the control's Tooltip display the sentence in .resw file? I'm new to WinUI and I'm not so good at English, so if there are any technological or linguistic mistake, please add a commit to let me know about it.
Any suggestions are appreciated.
In your control,
<local:SomeControl x:Uid="LocalizedSomeControl" />
then in Resources.resw,
Name | Value |
---|---|
LocalizedSomeControl.ToolTipService.ToolTip | This is the localized tooltip. |