Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    You can only bind onto properties of the current data context, row isn't even a member of MainWindow, it only exists inside the constructor, not before and not after the constructor. You're also not setting your DataContext anywhere, if you want to bind onto Properties of your code behind, you'll need this Commented Dec 2, 2021 at 8:39
  • As a note return timeshown; from the getter of a timeshown property won't work. You need a backing field for the property. Commented Dec 2, 2021 at 9:51
  • Oh yeah, thank you. Got it working now due to your tips. Watched a whole pluralsight course about this but cant really wrap my head around it just yet. Commented Dec 2, 2021 at 10:31