I have a function (let's call it StringFunction
) that periodically runs and I would like to automatically update a TextBlock in my GUI once the function returns.
There are many implementations of INotifyPropertyChanged
, which is presumably what I would have to use here. However there are no minimal examples of how to use the implementation in F#. In particular, I cannot find examples that address more basic issues such as what to put in the XAML (<TextBlock Text={Binding StringFunction}>
?), and how things like DataContext
fit into the picture.
Please educate me on these topics.