文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 高等教育 > 工学 > 稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton
侵权投诉

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

}

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

public MultiScaleImage()

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

{ InitializeComponent();

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

// // We are

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

setting the source here, but

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

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

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

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

稳扎稳打Silverlight(5) - 2.0控件之ListBox, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

, 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;

};

上一页第6页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email