简体   繁体   English

WP7:Grid DataTemplate

[英]WP7 : Grid DataTemplate

I have a Grid of images, images are dynamically added to the grid. 我有一个图像网格,图像被动态添加到网格中。

How can i create a cell dataTemplate for this Grid to add border radius to each image? 如何为此网格创建单元格dataTemplate以为每个图像添加边框半径?

You cannot add a cell template for the grid, but you can definetly add a default style to your image, so that the image comes with a border and you just place it in the grid. 您无法为网格添加单元格模板,但您可以明确地为图像添加默认样式,以便图像带有边框,您只需将其放置在网格中即可。 Just another way to think about your problem. 只是另一种思考问题的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM