private TextBox_GotKeyboardFocus ( object sender, System e ) : void | ||
sender | object | |
e | System | |
Résultat | void |
private void TextBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
{
//when first time 'Image' tab is clicked, this 'if' block should run only once, till the ConfigWindow is open.
if (!hasGotFocusBefore)
{
//set it to false because you are in Image tab very first time so basically you haven't changed any value yet.
hasGraphicImageSizeEdited = false;
}
hasGotFocusBefore = true;//for this session of ConfigWindow do not allow 'if' block to run again.
}