Unfortunately I haven't been in xaml for a while, but is what you need an
implementation of INotifyPropertyChange on the class properties, and set
the xaml  binding as anything other than "OneTimeOnly"??
On 20/02/2012 8:41 AM, "Greg Keogh" <[email protected]> wrote:

> Folk, my data grid columns used to bind to different properties of objects
> in an observable collection, so I used to have something typical like this:
> ****
>
> ** **
>
> <TextBlock Text="{Binding Name,Converter={...}}" ... />****
>
> <TextBlock Text="{Binding Phone,Converter={...}}" ... />****
>
> ** **
>
> If any of the property values changed then the binding would update as
> usual and things like colours and images would respond as my converter was
> called. To get fancier converter logic I changed the binding to go to the
> object, not the properties of the objects, like this:****
>
> ** **
>
> <TextBlock Text="{Binding Converter={...},ConverterParameter='Name'}" ...
> />****
>
> <TextBlock Text="{Binding Converter={...},ConverterParameter='Phone'}"
> ... />****
>
> ** **
>
> I adjusted the converter accordingly to cast the object and get the
> properties. I’ve outsmarted myself as now the binding don’t update when the
> properties change, I presume because I no longer name the property names.*
> ***
>
> ** **
>
> Is there a way of binding to the object like my second example but still
> get the bindings to update when properties change?****
>
> ** **
>
> Greg****
>
> _______________________________________________
> ozwpf mailing list
> [email protected]
> http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
>
>
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to