Example #1
0
        protected override void OnBindingContextChanged()
        {
            base.OnBindingContextChanged();

            if (BindingContext != null)
            {
                DynamicFrame li = null;

                if (this.BindingContext is EbDataRow row)
                {
                    li = new DynamicFrame(row, Visualization, false);
                    if (Visualization.HasLink())
                    {
                        SetTapGestureEvent(li);
                    }
                }
                else if (this.BindingContext is EbMobileStaticListItem item)
                {
                    li = new StaticLSFrame(item, Visualization, false);
                    if (item.HasLink())
                    {
                        SetTapGestureEvent(li);
                    }
                }

                if (li != null)
                {
                    SetItemColoring(li);
                    this.View = li;
                }
            }
        }