Dynamic Update of ListBox in Windows Store App

In this article we will use a List Box control and two buttons to implement dynamicly update a data list from the front end. In this application we can add content to the list by entering the content in a TextBox and with the help of an Add button. There is no limit to how many items that can be added. In the reverse process we also delete the items from the list. To delete the item from list box, first of all we will select the item that we want to delete and click on the Delete button.

In the following we are putting the entire code of the XAML file and code behind file to create this mini application.

Step 1 : First, you will create a new Metro Style Application. Let us see the description with images of how you will create it.

Open Visual Studio 2011

File -> New -> Project

Choose Template -> Visual C# -> Metro Style Application

Rename the application

Step 2 : In the Solution Explorer there are two files that we will primarily work with; the BlankPage.xaml and BlankPage.xaml.cs files.