}

public MultiScaleImage()

{ InitializeComponent();

// // We are

setting the source here, but

you should be able to set the Source property via //

this.msi.Source = new DeepZoomImageTileSource(new Uri("/DeepZoomImages/dzc_output.xml"

, UriKind.Relative));
//
// Firing an event when the MultiScaleImage is Loaded
//
this.msi.Loaded += new RoutedEventHandler(msi_Loaded);
//
// Firing an event when all of the images have been Loaded
//
this.msi.ImageOpenSucceeded += new
RoutedEventHandler(msi_ImageOpenSucceeded);
//
// Handling all of the mouse and keyboard functionality
//
this.MouseMove += delegate(object sender, MouseEventArgs e)
{
if (mouseButtonPressed)
{
mouseIsDragging = true;
}
this.lastMousePos = e.GetPosition(this.msi);
};
this.MouseLeftButtonDown += delegate(object sender, MouseButtonEventArgs e) {
mouseButtonPressed = true;
mouseIsDragging = false;
dragOffset = e.GetPosition(this);
currentPosition = msi.ViewportOrigin;
};
w 页码,1/13(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
扩展GridView控件(5) - 固定指定 行、指定列(30529) 6. [翻译].net 2.0(c#)下简单的FTP 应用程序(29680) 7. 稳扎稳打 Silverlight 2.0 系列文 章索引...
w 页码,1/12(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
w 页码,1/12(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
热门文档