Esempio n. 1
0
 /// <summary>Sets attributes to control how visual styles are applied to a specified window.</summary>
 /// <param name="window">The window.</param>
 /// <param name="attr">The attributes to apply or disable.</param>
 /// <param name="enable">if set to <c>true</c> enable the attribute, otherwise disable it.</param>
 public static void SetWindowThemeAttribute(this IWin32Window window, WTNCA attr, bool enable = true)
 {
     try { UxTheme.SetWindowThemeNonClientAttributes(window.Handle, attr, enable); }
     catch (EntryPointNotFoundException) { }
 }