0
private void Pushpin_Tap(object sender, 
        System.Windows.Input.GestureEventArgs e)
    {
        var _ppmodel = sender as Pushpin;
        ContextMenu contextMenu = 
            ContextMenuService.GetContextMenu(_ppmodel);
        contextMenu.DataContext = _viewModel.Pushpins.Where
            (c => (c.Location 
                == _ppmodel.Location)).FirstOrDefault();
        if (contextMenu.Parent == null)
        {
            contextMenu.IsOpen = true;
        }
    }

ここで、「定義がありません」などのエラーが発生します。教えてください

4

1 に答える 1

2

ファイルに正しいusingステートメントがあることを確認してください

using System.Linq;
于 2012-06-14T07:21:24.840 に答える