簡體   English   中英

在WinRT中創建控件Windows Phone Silverlight之類的樞軸並綁定項目

[英]Create pivot like control Windows Phone Silverlight in WinRT and bind Items

嗨,我想在Windows Phone中重新創建樞軸控件,並在Windows Store應用(WinRT)中使用它。 我已經嘗試過此MyToolkit,但似乎找不到綁定我的收藏的選項。 所以我想我的數據透視表頭是我的項目的集合,而我的數據透視表項目是我的數據透視表選擇的集合。 我的收藏就是這樣

//Class to bind in pivot
public class CategoryBooks
{
    public string CategoryName{get;set;}// This is for binding in my pivot header
    public List<Book> Books{get;set;}// This is for binding in my pivot item ListView
}

他們將Pivot構建在Control之上,而不是Microsoft的ItemsControl。

我沒有嘗試運行樣本,但我不了解它們的控制邏輯。 如果強烈需要一個很好的數據透視實現,我建議將您的應用程序重新定位為贏得10。

您可以嘗試使用具有關閉行為的Hub控件(盡管標題的行為有所不同)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM