TextBlock valueBlock = new TextBlock() { TextWrapping = TextWrapping.NoWrap }; Binding valueBinding = new Binding() { Path = new PropertyPath(string.Format("[{0}]", field)), StringFormat= aliases[field] + ": {0}" }; valueBlock.SetBinding(TextBlock.TextProperty, valueBinding);
Binding colorBinding = new Binding{ Path = new PropertyPath(string.Format("[{0}]", field)), Converter = new MyColorConverter() }; valueBlock.SetBinding(TextBlock.ForegroundProperty, colorBinding );
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.