Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to bind: DataTemplateContent' does not support values of type 'Pin #798

Open
1 task done
npehrsson opened this issue Dec 6, 2022 · 0 comments
Open
1 task done

Comments

@npehrsson
Copy link

VERSIONS

  • Xamarin.Forms.GoogleMaps - 5
  • Xamarin.Forms - 5

PLATFORMS

  • [x ] Android
  • iOS
  • [ x] UWP

ACTUAL BEHAVIOR

Severity Code Description Project File Line Suppression State
Error XLS0504 Property 'DataTemplateContent' does not support values of type 'Pin'.

ACTUAL SCREENSHOTS/STACKTRACE

        <Grid>
            <maps:Map
              x:Name="Map"
              X="{Binding MapX}"
              CameraPosition="{Binding CameraPosition}"
              ItemsSource="{Binding Locations}">
                <maps:Map.ItemTemplate>
                    <DataTemplate>
                        <maps:Pin 
                            Label="{Binding Title}"
                            Position="{Binding Position}"
                            />
                    </DataTemplate>
                </maps:Map.ItemTemplate>

EXPECTED BEHAVIOR

To Compile and work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant