PDA

View Full Version : Silverlight preview problems



wyo22ski
January 20th, 2009, 07:59 PM
Hello,

Hope this isn't too lame of a question to ask on such a technical forum, but thought I'd give it a go.

I'm reworking a Deep Zoom Composer layout in Expression Blend 2 and Visual Web Developer 2008 Expression. After building the solution and building the website in Visual Web, the generated page in the web browser looks great when I run the debug (F5). I save the solution, etc.

Later, when I re-open the hml in by browser, the solution and my changes are not shown. Any suggestions as to why, and what I can do about it?

Thanks in advance
Cam

kirupa
January 21st, 2009, 02:26 AM
Hi Cam - when you say the changes are not shown, what exactly is visible? For example, is it just a blank page?

wyo22ski
January 23rd, 2009, 01:53 AM
Hi Cam - when you say the changes are not shown, what exactly is visible? For example, is it just a blank page?

Thanks for your reply Kirupa.

Somehow, I figured it out...don't know how though. I have a more complicated equation however...

In the random image animation that is present in your Deep Zoom Metadata Web solution, is there a way to accommodate in the grid for tall (ie vertical images)? In the current solution, these images can sometimes overlap or are often partly obscured by other images (I assume this is partly from the z-order).

I know this must be controlled by the ImageWidth attribute, but I was wondering if there was any other way to add a script which would evaluate each sub-image and it's aspect ratio which would align them into columns and rows without any space between them? I did change the x and y offset values and eliminated the overlap, but not the white space. I guess I am looking for a resulting layout that brings various vertical and horizontal images into an evenly spaced array (like uhhhg the hard rock website.)


Thanks

kirupa
January 23rd, 2009, 03:22 PM
Hi wyo!
That is a more tricky solution. The easiest way would be for you to analyze the size of all images in the row and make the height on them all equal. For MultiScaleSubImages, the aspect ratio is always preserved. As long as the height is the same, you should be fine.

I will try to create an example of all of this shortly!

:)

wyo22ski
January 23rd, 2009, 04:25 PM
Thanks Kirupa,

Oh good! I did rebuild the DZC solution with all images at the same height but have been struggling with the exact equation and code to build the solution.

I'm assuming that once all the heights are the same (as built in DZC), it would follow that the width of all sub-images could be added together, their total count factored in and somehow logically rearranged within the viewport aspect ratio with equalized spacing all around. I'm attempting the math in a spreadsheet and simply don't know how to do this or furthermore translate any findings I do get into code.

I'll look forward to seeing an example and reading your solution!

Cameron

kirupa
January 23rd, 2009, 05:04 PM
For some silly reason, you can't access the widths of a subimage. What you can do is multiply the height by the aspect ratio to get the width instead :)