/// <summary> /// Registers the default styles for the common controls and sets the default style for the Window. /// </summary> /// <param name="resources">The resource dictionary to which the default style definitions will be added, usually <see cref="Application.Resources" />.</param> /// <remarks> /// This method calls OverrideMetadata for the window style, and can only be called once per process!<para/> /// </remarks> public static void RegisterDefault([NotNull, ItemNotNull] this ResourceDictionary resources) { resources.RegisterDefaultStyles().RegisterDefaultWindowStyle(); }