文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 高等教育 > 工学 > 稳扎稳打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

void msi_ImageOpenSucceeded(object sender, RoutedEventArgs e) { //If collection, this gets you a list of all of the MultiScaleSubImages

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

// //foreach (MultiScaleSubImage subImage in msi.SubImages) //{

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

// // Do something //} }

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

void msi_Loaded(object sender, RoutedEventArgs e) { // Hook up any events you want when the image has successfully been opened }

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

publicvoid Zoom(double

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

zoom, Point pointToZoom) { Point logicalPoint = this.msi.ElementToLogicalPoint(pointToZoom);

this.msi.ZoomAboutLogicalPoint(zoom, logicalPoint.X, logicalPoint.Y); }

/*

* Sample event handlerrs tied to the Click of event of various buttons for * showing all images, zooming in, and zooming out!

*

private void ShowAllClick(object sender, RoutedEventArgs e)

{

this.msi.ViewportOrigin = new Point(0, 0);

this.msi.ViewportWidth = 1;

ZoomFactor = 1;

}

private void zoomInClick(object sender, RoutedEventArgs e)

{

Zoom(1.2, new Point(this.ActualWidth / 2, this.ActualHeight / 2));

}

private void zoomOutClick(object sender, RoutedEventArgs e)

{

Zoom(.8, new Point(this.ActualWidth / 2, this.ActualHeight / 2));

}

* */

上一页第8页

你可能喜欢

热门文档

相关文档

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