Create MultiBinding label at runtime

198 Views Asked by At

I have the following xaml,a collectionView, that works fine and multidatabinds a label.

<Label TextType="Html">
    <Label.Text>
        <MultiBinding StringFormat="{}{0}{1}{2}">
            <Binding Path="ItemArray[1]" />
            <Binding Path="ItemArray[2]" />
            <Binding Path="ItemArray[3]" />
        </MultiBinding>
    </Label.Text>
</Label>

I want exactly the same thing but i want to create the DataTemplate of the collectionView at runtime. So create the Label at runtime and set the multidatabind at runtime. Is it possible?

0

There are 0 best solutions below