dynamically set the control template
Posted
by Saboor
on Stack Overflow
See other posts from Stack Overflow
or by Saboor
Published on 2010-04-23T05:35:59Z
Indexed on
2010/04/23
5:43 UTC
Read the original article
Hit count: 331
hi, i am using dictionaries in WPF. i have two bitmap image in it with name something like image1 and image2
now in forms, i like to set them to single image control depending on condition, some times image1 and sometimes image2. so how i set the source dynamically, in dictonary i have
UriSource="/wpf1;component/images/infobarGreen.png" /> UriSource="/wpf1;component/images/infobarRed.png" />
© Stack Overflow or respective owner