Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question