/// <summary>
 /// resetting dpiawareness of the thread.
 /// </summary>
 private void ResetDpiAwarenessContextChanges()
 {
     if (dpiAwarenessScopeIsSet)
     {
         CommonUnsafeNativeMethods.TrySetThreadDpiAwarenessContext(originalAwareness);
         dpiAwarenessScopeIsSet = false;
     }
 }