Код: Выделить всё
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: 'BindingContext' property not found on 'formaciones.ViewModels.Formacion.ActoViewModel', target property: 'Microsoft.Maui.Controls.ImageButton.Command'
Вот кнопка вид:
Код: Выделить всё
Код: Выделить всё
public ActoView() {
InitializeComponent();
vm = new ActoViewModel(this, new LocalDbService());
BindingContext = vm;
}
Код: Выделить всё
public ICommand SelectionCommand { get; }
public ActoViewModel()
{
}
public ActoViewModel(Page currentPage, LocalDbService dbService)
{
database = dbService;
_currentPage = currentPage;
LoadData();
CargaTitulo();
SelectionCommand = new Command(async (idActo) => await GuardarIdAc(idActo));
}
public async Task GuardarIdAc(object idActo)
{
IdActo = int.Parse(idActo.ToString());
}
Ошибка из моей сетки , в Adroid я могу нажать кнопку, а в IOS — нет
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/782 ... e-grid-ios