Quantcast
Viewing all articles
Browse latest Browse all 18858

How to totaly bind an object in template?

Hi there! I have an ItemList with customized Items by my own template. This template content Label and Image. I need to set many properties for each of two objects. So, rather than bind all of them to separate class entries, I would like to bind it on the object level, to reduce my class size. How it can be done?

Right now I have in XAML this string with binded Source property:

<Image HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Source="{Binding MyImage1, Mode=OneWay}"/>

But I need to bind all of them at once, something like this:

 <Image = "{Binding MyImage1}"/> 

Is it possible?


Aleksey


Viewing all articles
Browse latest Browse all 18858

Trending Articles