示例#1
0
        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));
        }
示例#2
0
 private static void Refresh(LargeIconListItemView v, LargeIconListItem _, RowPresenter p)
 {
     v.ImageSource = p.GetValue(_.LargeIcon);
 }