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 );
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.