Hi Tomas,
Thank you for contacting Syncfusion support.
Query 1: Showing different Popup based on views
Your requirement of showing different Popup content based on tapping different elements can be achieved by setting different ContentTemplate to the Popup view based on the desired views. As you mentioned, if you have three buttons when tapping the button in click event you have set the required template to the popup view.
We have prepared simple sample based on your requirement,
In the sample, we have maintained three buttons in the button click event we have handled different templates (Switches for Views and sorting) for each button.
Query 2: Accessing DataTemplate elements which hosted in Xaml
It is not possible to access the DataTemplate elements which hosted in Xaml. You must need to derive in code behind to access the DataTempalte elements. In the sample, we have handled the switch property which assigned in the DataTemplate.
We hope this helps. Please let us know, if you need any further assistance.
Regards,
Subburaj Pandian V