December 2018
Intermediate to advanced
416 pages
10h 30m
English
While the image is downloading, we want to show a loading text centered over the image. This is already in the XAML file that we created earlier, so what we really need to do is hide it once the image is downloaded. We will do this by controlling the IsVisibleProperty of the loadingLabel by setting a binding to the IsLoading property of the image. Any time the IsLoading property is changed on the image, the binding changes the IsVisible property on the label. This is a nice fire-and-forget approach.
Let's add the code needed to control the loading label:
public SwiperControl(){ InitializeComponent(); var picture = new ...Read now
Unlock full access