private void MarkAllValid() { NameTextBox.ClearValue(Control.StyleProperty); LeagueSizeTextBox.ClearValue(Control.StyleProperty); IsDateCheckBox.ClearValue(Control.StyleProperty); IsLocationCheckBox.ClearValue(Control.StyleProperty); WikiCodeTextBox.Style = Application.Current.TryFindResource("ManageMultiline") as Style; }
private void ClearInputs() { MarkAllValid(); DebugIDLabel.ClearValue(Label.ContentProperty); NameTextBox.Clear(); LeagueSizeTextBox.Clear(); IsDateCheckBox.ClearValue(CheckBox.IsCheckedProperty); IsLocationCheckBox.ClearValue(CheckBox.IsCheckedProperty); WikiCodeTextBox.Clear(); }