我有一个silverlight pivotviewer控件正确加载.cxml文件,然后请求相应的.dzc文件并填充了facet,我可以看到我有多少项目以及搜索它们,但是没有显示任何图块在主视图区域。我查看了输出并看到了这些绑定错误:
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”似乎是相关的,但我不知道为什么提供的控件会有绑定问题。有什么想法吗?
答案 0 :(得分:3)
我设置min时找到了解决问题的方法。滚动查看器中的pivotviewer的约束,但维度仍然是自动的,它在滚动查看器中:
http://betaforums.silverlight.net/forums/p/211146/497407.aspx
一旦我设置了最大约束并将其放在网格中,所有的图块就会显示出来。