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); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.