I have a form filled with multiple text fields that need to filled out by a user. Each text field has a tooltip to help the user with an example of the expected values for the text field.
<!-- Handle xaml-->
<Label x:Name="lbmyHandle" Content="Handle:" HorizontalAlignment="Left" Margin="69,80,0,0" VerticalAlignment="Top"/>
<TextBox x:Name="txtmyHandle" HorizontalAlignment="Left" Height="23" Margin="123,84,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" ToolTip="Example: [Machine brand].[Machine model].[Machine s/n]"/>
After the user clicks a button I validate each text field to check if anything has been filled out and if what has been filled out matches expected values. If this is not the case I set the tooltip of the text field to indicate that the user has to change the value of the text field.
Now the question, when the user clicks the button again after editing the values that were indicated as wrong I want to reset the tooltip of the text fields back to the "default" tooltip ( if they were corrected ). Meaning the tooltip that was set in the XAML. Is this value stored somewhere, or do I need to store this manually, and if so what would be the best practice to store these values.