int i=0; foreach(var key in Data.Keys) { ContainerGrid.Rows.Add(new RowDefinition()); TextBlock tb = new TextBlock() { Text = key }; tb.SetValue(Grid.Column, i++); ContainerGrid.Children.Add(tb); TextBlock tb2 = new TextBlock() { Text = value }; tb.SetValue(Grid.Column, i); tb.SetValue(Grid.Row, 1); ContainerGrid.Children.Add(tb2); }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.