【发布时间】:2021-04-10 04:24:55
【问题描述】:
我创建了 ImageButton,StackLayout 的子项,我想通过单击它来激活删除方法。我不能使用“点击”,所以我不知道该怎么做。
Content = new StackLayout
{
Children =
{
new ImageButton {Source = "/drawable/delete", HorizontalOptions = LayoutOptions.End, HeightRequest = 60, BackgroundColor = Color.Red, Padding = new Thickness(20,-5), CornerRadius = 45}
}
}
【问题讨论】:
标签: c# xamarin imagebutton