Imagen para determinar la altura de la cabecera
Categories
There are no items in this list.
Other Blogs
There are no items in this list.
Our Blogs > English > Ken Spencer > Posts > Silverlight 4 and indexed lists
Silverlight 4 and indexed lists

Working on a client app where i need to bind to an indexed list of accounts where each account in the list is an Account object..

I got this working today to bind to a generic list indexer:

<TextBox x:Name="Account730AValueTextBox" Grid.Row="1" Grid.Column="1" Text="{Binding AccountsDictionary[AAA].AccountValue, Mode=TwoWay}" />

AAA is the account number. So there you have AccountValue returned from the Account object for AAA. Pretty cool if you ask me.

Binding to indexers really rocks.

Comments

There are no comments yet for this post.
Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Attachments

¿Problemas técnicos? Contáctenos en webmaster@solidq.com o al 800 300 800 (desde España) o al +34 91 414 8950 (desde fuera de España)