2010-12-05 66 views
1

我有一個Silverlight的pivotviewer控件,它正確地加載.cxml文件,然後請求合適的.dzc文件,並且構面被填充,我可以看到我有多少項以及搜索他們,但沒有瓷磚顯示在主視圖區域。我看了看輸出,看到了這些綁定錯誤:silverlight pivotviewer控件不顯示圖塊

System.Windows.Data Error: BindingExpression path error: 'ViewportPadding' property not found on 'Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' 'Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' (HashCode=65819928). BindingExpression: Path='ViewportPadding' DataItem='Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' (HashCode=65819928); target element is 'Microsoft.Pivot.Internal.Controls.SeahorseItemExitHost' (Name='PART_ExitHost'); target property is 'Margin' (type 'System.Windows.Thickness').. 
System.Windows.Data Error: BindingExpression path error: 'LayoutEngine' property not found on 'Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' 'Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' (HashCode=65819928). BindingExpression: Path='LayoutEngine' DataItem='Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' (HashCode=65819928); target element is 'Microsoft.Pivot.Internal.Controls.SeahorseItemExitHost' (Name='PART_ExitHost'); target property is 'LayoutEngine' (type 'Microsoft.Pivot.Internal.ItemLayouts.ILayoutEngine').. 
System.Windows.Data Error: BindingExpression path error: 'PositionInWindow' property not found on 'Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' 'Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' (HashCode=65819928). BindingExpression: Path='PositionInWindow' DataItem='Microsoft.Pivot.Internal.ViewModels.CollectionViewerViewModel' (HashCode=65819928); target element is 'Microsoft.Pivot.Internal.Controls.SeahorseItemExitHost' (Name='PART_ExitHost'); target property is 'PositionInWindow' (type 'System.Windows.Point').. 

「LayoutEngine」似乎將有關,但我不知道爲什麼供給的控制將有約束力的問題。有任何想法嗎?

回答

3

我發現我的問題的解決方案,因爲我設置分鐘。用於滾動查看器中的pivotviewer的限制,但尺寸仍汽車,這是一個滾動查看器中:

http://betaforums.silverlight.net/forums/p/211146/497407.aspx

一旦我設定最高限制並把它放在一個網格,所有的瓷磚開始出現。

+0

令人難以置信...我一直在尋找HttpHandlers,因爲PivotViewer沒有通過我的HttpHandler通過我的HttpHandler爲JPG獲取圖片。設置高度和寬度已導致圖像被請求...順便說一句,該鏈接不起作用。 – 2011-07-14 23:35:55