Forum Xamarin.Forms

Multiple ContentPresenters in ControlTemplate

Is it possible to have multiple ContentPresenters in a ControlTemplate?

I created a CustomControl with two BindableProperties of type View: "ReadonlyContent" and "WritableContent".
The ControlTemplate Wraps two ContentPresenters where the Content is bound to either ReadonlyContent or WritableContent.

Misteriously it only shows the content of one ContentPresenter.

So the question again: Is it possible to have two or more ContentPresenters in a ControlTemplate?

If neccessary I can add more code.

Best Answer


  • tojaktojak Member ✭✭

    Works perfect! Thanks!

Sign In or Register to comment.