Example
Last updated
Last updated
We want to display the name of the current race that comes from a JSON source on the internet.
The list can be retrieved from this URL and the content looks like this:
So we need the property called "RaceName" from the first element (index 0) or the list.
First we need to add this URL known to ScreensPro. In the Sources tab click the plus button, then select HTTP Rest (Json), name it "RaceResult" and paste the URL from above:
Import part here is the binding in the textElement's Text property:
<controls:TextElement Foreground="{DynamicResource DefaultForeground}" Text="
{Binding Sources.RaceResult.Value[0].RaceName}
" Grid.Row="1" FontSize="20"></controls:TextElement>
Then we create a layout named RaceBindingLayout.xaml and paste this code (this assumes you have completed the section):