【发布时间】:2017-08-12 06:57:47
【问题描述】:
严重性代码描述项目文件行抑制状态 错误位置 37:61。在 xmlns http://schemas.microsoft.com/winfx/2009/xaml Course_3 中找不到类型 Regerence
<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>
【问题讨论】:
-
如果对您有帮助,也请考虑对答案进行投票。谢谢。
标签: c# xamarin xamarin.forms