locked
how to bind to size of IObservableVector to a TextBlock and get automatically updated?

    Question

  • bind IObservableVector to ItemSource of gridview will be fine, gridview will be automatically updated.

    Now I want to display number of a IObservableVector, I have tried:

    - text_block->DataContext = IObservableVector, and set up a converter, does not get updated after vector changed.

    - text_block->DataContext = IObservableVector->Size, does not get updated after vector changed.

    Any comment appreciated.

    Thanks,

    Helin

    Thursday, December 20, 2012 12:41 AM

All replies