Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Xamarin Workbooks is a free, open-source learning environment that has assisted thousands of Windows users in learning and perfecting basic C#. Microsoft is now leveraging the app as a tool for teaching an introductory programming language, Small Basic, in a method readily available to the average Windows user.
Small Basic’s simple command set combined with the educational features of Xamarin creates the perfect localized environment for children or beginners learning to code, producing what is essentially “Small C#.”
Small Basic was created as an educational coding language, a step between block programming and Visual Basic. It can be considered the preliminary step to more advanced programming and development techniques.
Each Xamarin Workbook combines the written text of a tutorial or webpage with the technical steps of a sample C# program. It also provides interactive preview windows and “run” options for testing small segments of code on the same page directly within the app.
Each space for writing text or code is known as a block or a cell. One can manipulate cells using the “add code,” “add text,” and “delete” buttons in an existing cell. Each code block is continued from the last meaning there is not need to duplicate code.
Workbooks typically begin with a brief text introduction to the learning task, immediately followed by code cells. Any user can follow the instructions to achieve a certain outcome.
NuGet is a Windows package manager that allows users to import packages from the web. This includes the package containing the Small Basic library for Workbooks.
The following sample comes from Nonki Takahashi:
Install Xamarin Workbooks from here.
Select [File] [Add Package], type "Small Basic", select "SmallBasic.Workbook 1.2.0" and push [ADD PACKAGE].
Type the following code:
#r "SmallBasicLibrary" using Microsoft.SmallBasic.Library; Turtle.Move(100);
Push Ctrl+R.
Download this sample: Xamarin Workbook: Learn C# for Small Basic Users
Forum Thread - See this Forum Thread for a Discussion and more samples:
#r “SmallBasicLibrary”
using Microsoft.SmallBasic.Library;
For more guides on the basics of Xamarin Workbooks, check out the Xamarin website here.
For more samples and discussions of Small Basic with Xamarin Workbooks, see this forum thread here.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in