Xamarin Basics

Gavin Looker 21 Reputation points
2021-05-04T20:01:04.91+00:00

Hello everyone, I am new to C# and Xamarin, and am already having a hard time editing the preset code for an app on Xamarin. From what I can see you are meant to go to the Resources -> Values folder and create variables in a .xml page titled "Strings" or something similar. When I navigated here, there was no "Strings" page so i decided to make one for organization purposes. When I tried to make the page, the New Item option is greyed out. I am having many basic problems like this, and though Xamarin seems to use C# as a language it seems there are many nuances to adding code into a Xamarin application. Is there any videos I could watch that really break down editing the Xamarin base code for beginners? I'm watching C# tutorials but I cant figure out how to implement the language once I have learned it.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
0 comments No comments
{count} votes

Accepted answer
  1. JessieZhang-MSFT 7,706 Reputation points Microsoft Vendor
    2021-05-05T02:21:50.77+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    From what I can see you are meant to go to the Resources -> Values folder and create variables in a .xml page titled "Strings" or something similar. When I navigated here, there was no "Strings" page so i decided to make one for organization purposes.

    Do you mean the strings.xml in xamarin android platform? If there is no such file, you can create a new xml file and rename it as strings.xml in folder Resources->values :

       <resources>  
        <string name="app_name">AnimationApp</string>  
        <string name="action_settings">Settings</string>  
    </resources>  
    

    Is there any videos I could watch that really break down editing the Xamarin base code for beginners?

    For this, you can check the official document:

    android: https: //learn.microsoft.com/en-us/xamarin/android/

    IOS: https://learn.microsoft.com/en-us/xamarin/ios/

    xamarin forms: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/

    UWP: https://learn.microsoft.com/en-us/windows/uwp/

    And those documents will typically contain the corresponding sample, you can run the demo against the document, which will help you learn.

    In addition, you can also search relative knowledge by entering keywords in your browser, there are many tutorials posted by some experienced developers in the internet(e.g. Youtube).

    Learning is a slow process, you can follow the documentation step by step, if there is a problem that can't be solved, feel free to ask in this forum, we will be happy to help you.
    I believe you will make rapid progress. Come on,friends!

    Best Regards,

    Jessie 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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful