Here, first we add namespace and then declare variable of String, after that value store using this variable, Go to on create () Observable Collection of given datatype. Then adding button events and some different conditions.