A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to our Microsoft Q&A platform!
Hi, the RelativeSource markup extension represents the relative bindings which provides the ability to set the binding source relative to the position of the binding target. The RelativeSource markup extension is supported by the RelativeSourceExtension class. RelativeSourceExtension defines the Mode property.
TemplatedParent is one number of the Mode values, it indicates the element to which the template, in which the bound element exists, is applied.
Here are the related docs, you could refer to:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/data-binding/relative-bindings
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/data-binding/relative-bindings#bind-to-a-templated-parent
You could check the official sample code -- RelativeSourceBindingCardViewPage:
https://learn.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/databindingdemos/
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.