Simple Binding Example
We want to display the name of the current race that comes from a JSON source on the internet (in this case from RACE RESULT).
The list can be retrieved from this URL https://api.raceresult.com/335303/J6Y6115LQEVGISWVEMFNQEG7NM3LXUF4 and the content looks like this:
[
{
"TimeOfDay": "2025-11-28 12:34:24",
"Random": 0.74654231,
"RaceName": "Test Race Marathon 2",
"StartTime": "09:50",
"IsStarted": true
}
]So we need the property called "RaceName" from the first element (index 0) of 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:

Then we create a layout named RaceResultSimpleBindingLayout.xaml and paste this code (this assumes you have completed the Visual Studio Projects section):
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>
Last updated