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

Sample code not working: XLS0502 error #2609

Closed
SetTrend opened this issue Jul 27, 2020 · 2 comments
Closed

Sample code not working: XLS0502 error #2609

SetTrend opened this issue Jul 27, 2020 · 2 comments
Assignees
Labels
design/tech Pri2 support-request A support-style question where the customer needs help solving a problem. uwp/prod

Comments

@SetTrend
Copy link

SetTrend commented Jul 27, 2020

The sample code provided at paragraph "Option 1: Add Items through XAML" doesn't work:

<!-- No corresponding C# code is needed for this example. -->

<ListView x:Name="Fruits"> 
   <x:String>Apricot</x:String> 
   <x:String>Banana</x:String> 
   <x:String>Cherry</x:String> 
   <x:String>Orange</x:String> 
   <x:String>Strawberry</x:String> 
</ListView>

XLS0502

Please verify and correct.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@jwmsft
Copy link
Contributor

jwmsft commented Jul 27, 2020

@SetTrend, in your screenshot, it appears that you have a Xamarin.Forms app. This documentation and sample code is for UWP apps, and won't work in Xamarin apps. For Xamarin documentation, see https://docs.microsoft.com/en-us/xamarin/.

@SetTrend
Copy link
Author

I didn't realize there were differences in XAML between UWP, Xamarin.Forms (and WPF?)

Thank you for enlightening me!

@hkhmsft hkhmsft added the support-request A support-style question where the customer needs help solving a problem. label Aug 4, 2020
QuinnRadich pushed a commit that referenced this issue May 24, 2022
* adding new page for app architecture

* edit PR comments

* saving work

* PR edit

* saved changes

* edit from PR

* fix typo

* edit PR

Co-authored-by: Hilina Haile ((SHE/HER)) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design/tech Pri2 support-request A support-style question where the customer needs help solving a problem. uwp/prod
Projects
None yet
Development

No branches or pull requests

4 participants