Does anyone know a better way to loop through the children of than this:
void OnSliderValueChanged(object sender, ValueChangedEventArgs args)
{
double value = args.NewValue;
foreach (Label label in A.Children)
{
label.HeightRequest = value;
label.WidthRequest = (value * 4);
label.FontSize = value;
}
}
Can I assign controls to a "class" as in HTML and then iterate through the class members?
Can I refer to the children without specifying their type and just iterate by ordinal position, as in A.Children(5).HeightRequest = value;
?