Silverlight的MultiScaleImage来源属性 [英] Source attribute of Silverlight MultiScaleImage

查看:150
本文介绍了Silverlight的MultiScaleImage来源属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解到,我们应该assgin一个.bin文件到的Siverlight MultiScaleImage的来源属性。例如,我在这里学会了(指的是在部分事件匿名方法code样品),

I learned we should assgin a .bin file to the Source attribute of Siverlight MultiScaleImage. For example, I learned from here (refers to code sample in section Anonymous Methods for Events),

<一个href="http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/410/Silverlight-Deep-Zoom-Sample-$c$c-Part-2.aspx" rel="nofollow">http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/410/Silverlight-Deep-Zoom-Sample-$c$c-Part-2.aspx

不过,我一直使用的Deep Zoom Composor的导出功能将不会产生.bin文件尝试。这里是我的屏幕快照。任何想法有什么不好?

But I have tried using export function of Deep Zoom Composor will never generate .bin file. Here are my screen snapshots. Any ideas what is wrong?

(我使用VSTS 2008 +的.Net 3.5 + C#。)

(I am using VSTS 2008 + .Net 3.5 + C#.)

推荐答案

该MultiScaleImage控件的来源属性可以在几个不同的方式来设置。如果你设置它在XAML中,您可以指向dzc_output.xml文件(位于GeneratedImages文件夹),直接像这样:

The MultiScaleImage control's Source property can be set in a couple different ways. If you're setting it in XAML, you can point to the dzc_output.xml file (located in the GeneratedImages folder) directly like so:

<MultiScaleImage x:Name="Foo" Source="/GeneratedImages/dzc_output.xml" />

您还可以将其设置在code,你需要把它分配作为DeepZoomImageTileSource的额外步骤:

You can also set it in code, you you need to take the extra step of assigning it as a DeepZoomImageTileSource:

Foo.Source = new DeepZoomImageTileSource(
             new Uri("/GeneratedImages/dzc_output.xml", UriKind.Relative));

希望帮助!

这篇关于Silverlight的MultiScaleImage来源属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆