XAML按钮单击事件中的签名不正确
我正在使用Visual Studio 2017和Resharper 2018.2。当resharper查看我的代码时,我收到一个“错误签名”错误XAML按钮单击事件中的签名不正确,xaml,resharper,Xaml,Resharper,我正在使用Visual Studio 2017和Resharper 2018.2。当resharper查看我的代码时,我收到一个“错误签名”错误 <Button x:Name="ButtonNext" BackgroundColor="#bebebe" CornerRadius="5" Grid.Column="1" Grid.Row="0" Text="Next" TextColor="#
<Button x:Name="ButtonNext"
BackgroundColor="#bebebe"
CornerRadius="5"
Grid.Column="1"
Grid.Row="0"
Text="Next"
TextColor="#FFFFFF"
Clicked="ButtonNextClickedAsync"></Button>
仅当方法为异步时,才会出现此错误。有人知道正确的签名是什么吗?尝试将签名更改为:
private async void ButtonNextClickedAsync(object sender, EventArgs e)
然后在此事件处理程序中调用您的任务。您可以将您正在使用的签名添加到问题中吗?@PatrickHollweck忘了添加它!好极了!我忘记了“AsyncVoid”将用于事件处理程序(而且只有事件处理程序)。
private async void ButtonNextClickedAsync(object sender, EventArgs e)