Exemplo n.º 1
0
            public void Bind(IItemMenu model)
            {
                NameImage?.SetImageFromResource((model as IHome)?.ImageHome);

                if (!NameText.IsNull())
                {
                    NameText.Text = model.Name;

                    NameText?.SetTextColor(ColorConstants.WhiteColor);
                    NameText?.SetFont(FontsConstant.RobotoBold, FontsConstant.Size36);
                }

                if (CellContentRootView.IsNull())
                {
                    return;
                }
                CellContentRootView.Tag    = model;
                CellContentRootView.Click -= CellContentRootView_Click;
                CellContentRootView.Click += CellContentRootView_Click;
            }