T
T
Tsiren Naimanov2015-10-26 18:11:47
Windows
Tsiren Naimanov, 2015-10-26 18:11:47

InlineCollection initialization No WUA constructor?

InlineCollection initialization No WUA constructor?
The class has an InlineCollection property, but how to initialize it? I'm trying with new InlineCollection(); but instead an error, there is no constructor accepting 0 elements, the same with 1-2-3 elements, and IntelliSense also does not show constructors, how to declare or use this collection?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom, 2015-10-26
@ImmortalCAT

There is not. MSDN says this: InlineCollection creation is only permitted inside an element that owns an InlineCollection, such as a TextBlock or a Paragraph. As such, an InlineCollection cannot be instantiated directly and has no default or overloaded constructor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question