示例#1
0
        /// <summary>
        ///  Handle the BtnClear button click - clear the user's input
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnClear_Clicked(object sender, EventArgs e)
        {
            // Use the ClearValue method to clear the entry
            EntryTest1.ClearValue(Entry.TextColorProperty);
            EntryTest2.ClearValue(Entry.TextColorProperty);
            EntryTest3.ClearValue(Entry.TextColorProperty);

            LblResults.Text = "Results...";
        }
示例#2
0
 /// <summary>
 /// Clears the text inputs
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnClear_Clicked(object sender, EventArgs e)
 {
     //Clears all the test score inputs
     EntryTest1.ClearValue(Entry.TextColorProperty);
     EntryTest2.ClearValue(Entry.TextColorProperty);
     EntryTest3.ClearValue(Entry.TextColorProperty);
     // returns the LblResults text back to Results...
     LblResults.Text = "Results...";
 }