Example #1
0
        private static PickerCell CreatePicker(string text, string itemsBinding, PickerMode mode, string subtext = "", string commandBinding = null)
        {
            var cell = new PickerCell();

            cell.Text = text;
            cell.SetBinding(PickerCell.PickerItemsProperty, itemsBinding);
            cell.Mode    = mode;
            cell.SubText = subtext;
            if (commandBinding != null)
            {
                cell.SetBinding(PickerCell.EmptyCommandProperty, commandBinding);
            }

            return(cell);
        }