Hi dear community,
I created a project via the Master/Detail template. For the detail view is it possible to create a layout with user elements via the xaml file (here: ItemDetailPage.xaml) as well as the code behind file (ItemDetailPage.xaml.cs) simuntaneously and how can this be accomplished? For instance labels with data binding via xaml and a map dynamically via code behind? How can I access the variables “Text” and “Description” within the code behind file? Your help is greatly appreciated!
Waveguide
Answers
Do you want this ?
Create a custom
ContentView
, move layouts/controls and create data binding into its xaml .Then place the view into ItemDetailPage.
Check https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/contentview#create-a-custom-control .
Thank you!! I‘ll try that out and let you know soon!
Best wishes
Waveguide
Okay, don't forget to mark my answer if it helps
.