I have the following in XAML:
<Button Content="{Binding KB.Text}" />
KB is an instance of the following class:
public class ButtonText
{
public string Text
{
get
{
return "Button";
}
}
}
I have KB defined as global variable in the code behind of the page, the button content is showing empty when running the project, how would I achieve this? The button content should be retrieved by KB.Text