How to change ItemTemplate at Runtime
I’d faced with a problem about changing a gridview itemtemplate at runtime, first of all I think I need to explain why I needed to change itemtemplate when my application running? As you know our applications’ datas are growing. In this case our application interfaces getting bigger and it could return us as a negative user experience. I though I could change this negative situation to a positive feature.
So, my application lists my blogposts and it means I need to show these uncategorized posts on the screen and its about 24 posts . For 1366×768 screens, these posts are providing a good view to users and I though I could give a chance to users ability to change item sizes.
Now lets do that. We’ll add a button or something else to our application to give users ability to change item sizes. User will be able to see bigger or smaller items as they prefer. Yazının devamı…