✅ Help with Tooltip content binding
I have created a UserControl with dependency Property to accept the string for the TextBlock within my ToolTip
XAML:
Code-Behind:
Adding it to another UserControl:
The ToolTipVisibility works just fine but the CaptionText isn't
2 Replies
I tried using
None of them worked
It only happens inside the <Button.ToolTip> tags
If I use
It seems to work just fine but I need my custom Style for it
PS:
x:Name="ucToolTip" does exists on the very top so idk why is it not finding it properly, secondly I'm not using a UserControl for just a button with tooltip, there are more elements to the UserControl, the tooltip is just a part of it, I removed the other elements from the xaml and code behind so that it's easier for anyone to understand who decides to help
Any help would be appreciated, thanks
Solved it myself:
I binded the CaptionText to the Button Tag and used it from there
!close
Closed!