Exemplo n.º 1
0
        public void GenerateCellContent(TableViewCell cell)
        {
            cell.ContentTemplate = CellTemplate;
            cell.HorizontalContentAlignment = HorizontalContentAlignment;

            if (ContextBinding == null && ContextBindingPath != null)
            {
                ContextBinding = new Binding(ContextBindingPath);
            }

            if (ContextBinding != null)
            {
                BindingOperations.SetBinding(cell, DataContextProperty, ContextBinding);
            }
        }