private void Clear() { FrameBorder.Visibility = Visibility.Hidden; AmountTextBox.ToDefaultView(DefaultThickness, DefaultBrush); amountValid = false; AmountTextBox.Text = ""; PriceTextBox.ToDefaultView(DefaultThickness, DefaultBrush); priceValid = false; PriceTextBox.Text = ""; NameTextBox.ToDefaultView(DefaultThickness, DefaultBrush); nameValid = false; NameTextBox.Text = ""; typeValid = false; TypeComboBox.SelectedIndex = -1; }