public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem) { var editor = new CustomCaptainEditor(); editor.SetBinding(CustomCaptainEditor.CaptainNameProperty, CreateBinding(string.Format("{0}.Name", this.DataMemberBinding.Path.Path))); editor.SetBinding(CustomCaptainEditor.CaptainPositionProperty, CreateBinding(string.Format("{0}.Position", this.DataMemberBinding.Path.Path))); return(editor); }
public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem) { var editor = new CustomCaptainEditor(); editor.SetBinding(CustomCaptainEditor.CaptainNameProperty, CreateBinding(string.Format("{0}.Name", this.DataMemberBinding.Path.Path))); editor.SetBinding(CustomCaptainEditor.CaptainPositionProperty, CreateBinding(string.Format("{0}.Position", this.DataMemberBinding.Path.Path))); return editor; }