1

Topic: GridViewColumn. DisplayMemberBinding on the delegate

2

Re: GridViewColumn. DisplayMemberBinding on the delegate

Hello, ylem, you wrote: Y> There is a class with Dictionary <string, string>, inside. Y> It would be desirable in   columns (GridViewColumn) for GridView and  these  on "keys" in it . Whether Y> Nezlzja the similar delegate enveloped in  to palm off in GridViewColumn. DisplayMemberBinding? IValueConverter https://msdn.microsoft.com/en-us/librar … econverter (v=vs.110).aspx

3

Re: GridViewColumn. DisplayMemberBinding on the delegate

K> IValueConverter https://msdn.microsoft.com/en-us/librar … econverter (v=vs.110).aspx to Convert value object in value of property? On reading (from object) it works, but "on record"  properties in object - already are not present. Or something I do not understand?

4

Re: GridViewColumn. DisplayMemberBinding on the delegate

Hello, ylem, you wrote: K>> IValueConverter https://msdn.microsoft.com/en-us/librar … econverter (v=vs.110).aspx Y> to Convert value object in value of property? Y> on reading (from object) it works, but "on record"  properties in object - already are not present. Or something I do not understand? If BindingMode. TwoWay works Convert - from source in target ConvertBack - from target in source

5

Re: GridViewColumn. DisplayMemberBinding on the delegate

Hello, ylem, you wrote: Y> On reading (from object) it works, but "on record"  properties in object - already are not present. Or something I do not understand? There two methods at implementation at the interface: one Convert is in UI, another ConvertBack - from UI in a source.

6

Re: GridViewColumn. DisplayMemberBinding on the delegate

K> ConvertBack - from target in source From which it is supposed  "new" object,  new value of property. But I do not need to return new object, it is necessary for me in "old"  value. I am exact something I do not understand.

7

Re: GridViewColumn. DisplayMemberBinding on the delegate

Hello, ylem, you wrote: Y> There is a class with Dictionary <string, string>, inside. Y> It would be desirable in   columns (GridViewColumn) for GridView and  these  on "keys" in it . Y> Tried Y> - column. DisplayMemberBinding = new Binding (key), It is necessary so: column. DisplayMemberBinding = new Binding ($ "[{key}]");... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>

8

Re: GridViewColumn. DisplayMemberBinding on the delegate

Y>> Tried Y>> - column. DisplayMemberBinding = new Binding (key), H_D> It is necessary so: H_D> H_D> column. DisplayMemberBinding = new Binding ($ "[{key}]"); H_D> Thanks! However, now to redefined DynamicObject. TryGetMember () business does not reach at all, and  shows empty cells

9

Re: GridViewColumn. DisplayMemberBinding on the delegate

Hello, ylem, you wrote: Y> Thanks! Y> However, now to redefined DynamicObject. TryGetMember () business does not reach at all, and  shows empty cells It is necessary directly Dictionary <> to palm off at line without DynamicObject... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>

10

Re: GridViewColumn. DisplayMemberBinding on the delegate

H_D> It is necessary directly Dictionary <> to palm off at line without DynamicObject Or to get  with string parameter in own class. Once again thanks!

11

Re: GridViewColumn. DisplayMemberBinding on the delegate

Hello, ylem, you wrote: Y> Or to get  with string parameter in own class. Y> once again thanks! Yes there is nothing - itself long searched in due time .. By the way, it is possible not only  with a line - the main thing that it turned out  expression in square brackets in parameter type . ... If does not work simply square brackets - it is possible to try to deliver in the beginning. Or Items [[<that to us >] - somehow so... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>