I
I
iRumba2015-05-12 07:07:57
WPF
iRumba, 2015-05-12 07:07:57

How to add MultiBindig to PointCollection?

There is a code

<Polygon Grid.Row="0" Stroke="Black">
            <Polygon.Points>
                <MultiBinding Converter="{StaticResource SizeToPointsConverterUp}">
                    <Binding ElementName="Container" Path="Width"/>
                    <Binding ElementName="Row" Path="Height"/>
                </MultiBinding>
            </Polygon.Points>


        </Polygon>

The xaml constructor in the studio swears with the words:
unable to add instance of type MultiBinding to collection of type PointCollection. This can only be done for elements of type Point

Where is the logic? Help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Larry Underwood, 2015-07-06
@Hydro

Probably because you are trying to specify multibinding for the collection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question