I have a button with a tooltip that needs to show when the user hovers. This works fine when a static piece of text is passed, however trying to do it with a dynamic piece of text is proving to be a problem.
currently I have in XAML
<Button ToolTip="{Binding galue}"></Button>
and in the code behind
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
toolT TT = new toolT();
TT.galue = "some text";
}
}
class toolT
{
public string galue { get; set; }
}
}
also setting the binding to toolT.galue in XAML has no different result