0
是否有任何理由说明为什么事件LoadedPivotItem在分配了Pivot的DataContext时未触发,因此创建数据透视表项?Pivot控件上的LoadedPivotItem事件未被第一次触发,WP7
只有在Swype处理已经由_SelectionChanged事件处理的下一个数据透视表项时才会触发它。
protected override void OnNavigatedTo
(System.Windows.Navigation.NavigationEventArgs e)
{
var someData = LoadData();
pivot.DataContext = someData;
base.OnNavigatedTo(e);
}
void pivot_LoadedPivotItem(object sender, PivotItemEventArgs e)
{
// Will not stop here after data being assigned to DataContext
}
我需要这个事件,特别是因为我需要PivotItem和它的数据上下文进行进一步的操作。 有没有什么我做错了,或者有一些其他事件,我可以在这里使用时获得一个PivotItem(PivotItemEventArgs)。
谢谢