Reputation: 589
I use the excel plug-in to publish them, then i copy the cxml and the folder to my .web project and when i run the pivot works and has the categories but doesnt show images.
xaml code:
<StackPanel>
<pivot:PivotViewer x:Name="PivotViewer" Height="310"></pivot:PivotViewer>
</StackPanel>
home code:
PivotViewer.LoadCollection("http://localhost:2287/Test2.cxml",null);
Thanks in advance.
Upvotes: 3
Views: 1254
Reputation: 589
@stuart @alison Thank you bothI found the solution. When you have the pivot in a container like stackpanel, you have to put the width and height. If you do not declare its height and width they are infinite and the images wont render. This is how i solved it.
<StackPanel Height="437" Width="960">
<pivot:PivotViewer x:Name="PivotViewer" Height="310"></pivot:PivotViewer>
</StackPanel>
Upvotes: 2
Reputation: 49413
Take the PivotViewer out of the StackPanel. The StackPanel is known to break PivotViewer layouts.
Upvotes: 1
Reputation: 66882
You'll need to supply a lot more information than that to help us debug this.
Some basic advice is:
Check that the pathing for all your files - dzi, dzc, png, etc - is correct.
Also, try it on different browsers - I've noticed a lot of caching going on (so if it fails first time then it might fail every later time too)
Upvotes: 0