【问题标题】:MvxTableViewCell BackgroudColor binding fails on iPad but work on simulatorMvxTableViewCell BackgroudColor 绑定在 iPad 上失败,但在模拟器上工作
【发布时间】:2016-04-13 13:38:12
【问题描述】:

我不确定如何解决这个问题。绑定在模拟器上运行良好,但在真实设备 - iPad 上失败。

public RunSheetItemView (IntPtr handle) : base (handle)
{
    this.DelayBind (() => {
    var set = this.CreateBindingSet<RunSheetItemView, RunSheetItemViewModel>();

    set.Bind(this).For(v => v.BackgroundColor).To(vm  => vm.Status).WithConversion("InspectionStatusColorConverter");
    set.Apply();
    });
}

【问题讨论】:

    标签: mvvmcross


    【解决方案1】:

    找到了,链接器优化导致问题在LinkerPleaseInclude.cs文件中添加以下内容

    public class LinkerIncludePlease
    {
            public void Include(MvxTableViewCell vc)
            {
                vc.BackgroundColor = UIColor.Blue;
            }
    }
    

    【讨论】:

      猜你喜欢
      • 2013-05-05
      • 1970-01-01
      • 2012-05-16
      • 1970-01-01
      • 1970-01-01
      • 2012-10-25
      • 2016-02-25
      • 1970-01-01
      • 2023-03-24
      相关资源
      最近更新 更多