예제 #1
0
        public NEWSEntryCell()
            : base()
        {
            InitializeComponent();

            ViewCellRootGrid.SetBinding(Grid.BindingContextProperty, new Binding(nameof(Component), mode: BindingMode.OneWay, source: this));
        }
        public NEWSPickerCell() : base()
        {
            InitializeComponent();

            ViewCellRootGrid.SetBinding(Grid.BindingContextProperty, new Binding(nameof(Component), mode: BindingMode.OneWay, source: this));

            MessagingCenter.Subscribe <Picker>(this, "Clear", (p) =>
            {
                if (p == Editor)
                {
                    Editor.SelectedItem = null;
                }
            });
        }