嚴重級代碼說明項目文件行抑制狀態 錯誤位置37:61。鍵入Regerence中的xmlns http://schemas.microsoft.com/winfx/2009/xaml Course_3Xamarin Form(PCL)上使用'<ViewCell.ContextActions>'時,我無法運行applicaton?
<ViewCell>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Image Source="{Binding PhotoUrl}" HeightRequest="70"></Image>
</Grid>
<StackLayout Grid.Column="1" Padding="5">
<Label Text="{Binding FullName}" FontSize="15" TextColor="Black" Margin="0,5"></Label>
<Label Text="{Binding City}" FontSize="10" TextColor="Black" Margin="0,5"></Label>
<Label Text="{Binding JobTitle}" FontSize="10" TextColor="#CCCCCC" Margin="0,5"></Label>
</StackLayout>
<ViewCell.ContextActions>
<MenuItem Text="Edit" Command="{Binding Source={x:Reference Root}, Path=BindingContext.EditCommand}"
CommandParameter="{Binding}"></MenuItem>
<MenuItem Text="Delete" Command="{Binding Source={x:Regerence Root},Path=BindingContext.DeleteCommand}"
CommandParameter="{Binding}"></MenuItem>
</ViewCell.ContextActions>
</Grid>
</ViewCell>
如果它對你有幫助,也請考慮upvoting的答案。謝謝。 –