public static RowCompositeBinding <LargeIconListItemView> BindToLargeIconListItemView(this LargeIconListItem _) { var textBoxBinding = _.DisplayName.BindToTextBox(); var textBlockBinding = _.DisplayName.BindToTextBlock(); return(new RowCompositeBinding <LargeIconListItemView>((v, p) => Refresh(v, _, p)) .AddChild(textBoxBinding.MergeIntoInPlaceEditor(textBlockBinding), v => v.InPlaceEditor)); }
private static void Refresh(LargeIconListItemView v, LargeIconListItem _, RowPresenter p) { v.ImageSource = p.GetValue(_.LargeIcon); }