on my researches regarding "Selecting elements inside a Hub", I found this thread. The FindChildControl function works for me in most cases, but unfortunately it seems, that this function cannot address elements like Ellipses or Images. As I'm a very beginner with C# and UWP, is there any possibility to address those elements?
For example, here's a bit of code, that should address an image inside the "weatherSec" hub-section, but it's still null.
Image ResImage = FindChildControl<Image>(weatherSec, "ResultImage") as Image;
TextBlock ResultTextBlock = FindChildControl<TextBlock>(weatherSec, "ResultTextBlock") as TextBlock;
//var position = await LocationManager.GetPosition();
RootObject myWeather =
await OpenWeatherMapProxy.GetWeather(
51.43,
6.75);
string icon = String.Format("ms-appx:///Assets/Weather/{0}.png", myWeather.weather[0].icon);
ResImage.Source = new BitmapImage(new Uri(icon, UriKind.Absolute));
ResultTextBlock.Text = myWeather.name + " - " + ((int)myWeather.main.temp).ToString() + "°C - " + myWeather.weather[0].description;
Greetings Dada