void OnNativeSelectedDateChanged(object sender, Avalonia.Controls.SelectionChangedEventArgs e)
 {
     if (Control.SelectedDate.HasValue)
     {
         ((IElementController)Element).SetValueFromRenderer(DatePicker.DateProperty, Control.SelectedDate.Value);
     }
 }
Ejemplo n.º 2
0
        private void Control_SelectionChanged(object sender, ASelectionChangedEventArgs e)
        {
            foreach (object item in e.AddedItems)
            {
                Cell cell = item as Cell;
                if (cell != null)
                {
                    if (cell.IsEnabled)
                    {
                        Element.Model.RowSelected(cell);
                    }
                    break;
                }
            }

            Control.SelectedItem = null;
        }