我正在尝试Pivot Control示例。
在我的xaml文件中,它有
<PivotItem
x:Uid="PivotItem2"
Margin="19,14.5,0,0"
Header="Their Lists"
DataContext="{Binding TheirLists}"
d:DataContext="{Binding Groups[1], Source={d:DesignData Source=/DataModel/SampleData.json, Type=data:OneListDataSource}}">
<!--Double line list no text wrapping-->
<ListView
ItemsSource="{Binding Items}"
IsItemClickEnabled="True"
ItemClick="ItemView_ItemClick"
Loaded="SecondPivot_Loaded"
ContinuumNavigationTransitionInfo.ExitElementContainer="True">
....
在函数ItemView_ItemClick()
中,它具有:
private void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
// Navigate to the appropriate destination page, configuring the new page
// by passing required information as a navigation parameter
var itemId = ((OneList.Data.OneList)e.ClickedItem).UniqueId;
if (!Frame.Navigate(typeof(ItemPage), itemId))
{
throw new Exception(this.resourceLoader.GetString("NavigationFailedExceptionMessage"));
}
}
我需要帮助才能了解这最终将如何构建&#39; ItemPage.xaml&#39;?
单击某个项目时,会在解决方案中创建绑定ItemPage
的位置吗?