Suppose that I put in StackPanel
5 objects of the class ConfigNivel
, I would like later to access the methods of these 5 objects, for example, the method GetTotal()
, which are housed inside ConfigNivel().GetTotal()
private void ConstruirFilas(int numFilas)
{
for (int i = 1; i < numFilas; i++)
{
StackConfiguracion.Children.Add(new ConfigNivel(i));
}
}
How can I access these?