私は現在、ピボットコントロール間を移動する必要アプリケーションをコーディングしています。ピボット制御誤差
8つのピボットの合計があります。私はすでに1つを終え、現在2番目のものに取り組んでいます。しかし、最初のピボットコントロールで行ったことと同じことを繰り返すと、エラーが表示されます。コードとエラーについては下記を参照してください。
私はWP7の開発に新しいです。どんな助けでも大歓迎です。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
namespace SGFoodDirectory
{
public partial class Alcohol : PhoneApplicationPage
{
public Alcohol()
{
InitializeComponent();
}
private void BC_Click(object sender, RoutedEventArgs e)
{
AlPivot.SelectedItem = BcPivot;
}
private void MabukMoney_Click(object sender, RoutedEventArgs e)
{
AlPivot.SelectedItem = MmPivot;
}
}
}
エラー:
Microsoft.Phone.Controls.PivotItem' does not contain a definition for 'SelectedItems' and no extension method 'SelectedItems' accepting a first argument of type 'Microsoft.Phone.Controls.PivotItem' could be found (are you missing a using directive or an assembly reference?)
下の票にコメントしてください。私は、最初のピボットコントロールでコードが機能していたのになぜ2番目のピボットコントロールで作業していないのか、単に混乱しています。どんな説明も深く感謝します。 – Patyh