开发者

WP7 Changing 1 layout element based on another

开发者 https://www.devze.com 2023-04-06 22:47 出处:网络
Having no luck here trying to find a solution to this. I\'ve set up a looping selector based on this guide. (I also used the ListLoopingDataSource class in Part 2 in order to have strings in my loopi

Having no luck here trying to find a solution to this.

I've set up a looping selector based on this guide. (I also used the ListLoopingDataSource class in Part 2 in order to have strings in my looping list).

What I want to be able to do is then change another element (an image box/placeholder) on my layout, based on what is currently selected in the looping selector.

No real idea how to do this, the开发者_StackOverflow onSelectionChanged event is kind of abstracted and not really useful? I'm not sure how to programmatically change images either, it doesn't look like I can access a resource from the code base, only from the xaml.

Any help/suggestions would be greatly appreciated.


I found that I could do this by using binding.

0

精彩评论

暂无评论...
验证码 换一张
取 消