|
252 | 252 | <ReturnType>System.Windows.Forms.SystemColorMode</ReturnType>
|
253 | 253 | </ReturnValue>
|
254 | 254 | <Docs>
|
255 |
| - <summary>To be added.</summary> |
| 255 | + <summary>Gets the default color mode (dark mode) for the application.</summary> |
256 | 256 | <value>To be added.</value>
|
257 |
| - <remarks>To be added.</remarks> |
| 257 | + <remarks> |
| 258 | + <para> |
| 259 | + This is the <see cref="P:System.Windows.Forms.Application.SystemColorMode" />; which either has been set by <see cref="M:System.Windows.Forms.Application.SetColorMode(System.Windows.Forms.SystemColorMode)" /> or its default value <see cref="F:System.Windows.Forms.SystemColorMode.Classic" />. |
| 260 | + If it has been set to <see cref="F:System.Windows.Forms.SystemColorMode.System" />, then the actual color mode is determined by the system settings (which can be retrieved by the static (shared in VB) <see cref="P:System.Windows.Forms.Application.SystemColorMode" /> property. |
| 261 | + </para> |
| 262 | + </remarks> |
258 | 263 | </Docs>
|
259 | 264 | </Member>
|
260 | 265 | <Member MemberName="CommonAppDataPath">
|
|
982 | 987 | <ReturnType>System.Boolean</ReturnType>
|
983 | 988 | </ReturnValue>
|
984 | 989 | <Docs>
|
985 |
| - <summary>To be added.</summary> |
| 990 | + <summary> |
| 991 | + Gets a value indicating whether the application is running in a dark system color context. |
| 992 | + </summary> |
986 | 993 | <value>To be added.</value>
|
987 |
| - <remarks>To be added.</remarks> |
| 994 | + <remarks>In a high contrast mode, this will always return <see langword="false" /></remarks> |
988 | 995 | </Docs>
|
989 | 996 | </Member>
|
990 | 997 | <Member MemberName="LeaveThreadModal">
|
|
1811 | 1818 | <Parameter Name="systemColorMode" Type="System.Windows.Forms.SystemColorMode" Index="0" FrameworkAlternate="windowsdesktop-9.0" />
|
1812 | 1819 | </Parameters>
|
1813 | 1820 | <Docs>
|
1814 |
| - <param name="systemColorMode">To be added.</param> |
1815 |
| - <summary>To be added.</summary> |
1816 |
| - <remarks>To be added.</remarks> |
| 1821 | + <param name="systemColorMode">The application's default color mode (dark mode) to set.</param> |
| 1822 | + <summary>Sets the default color mode (dark mode) for the application.</summary> |
| 1823 | + <remarks> |
| 1824 | + <para> |
| 1825 | + You should use this method to set the default color mode (dark mode) for the application. Set it, before creating any UI elements, to ensure that the correct color mode |
| 1826 | + is used. You can set it to dark mode (<see cref="F:System.Windows.Forms.SystemColorMode.Dark" />), light mode (<see cref="F:System.Windows.Forms.SystemColorMode.Classic" />) |
| 1827 | + or to the system setting (<see cref="F:System.Windows.Forms.SystemColorMode.System" />). |
| 1828 | + </para> |
| 1829 | + <para> |
| 1830 | + If you set it to <see cref="F:System.Windows.Forms.SystemColorMode.System" />, the actual color mode is determined by the Windows system settings. If the system setting is changed, |
| 1831 | + the application will not automatically adapt to the new setting. |
| 1832 | + </para> |
| 1833 | + <para> |
| 1834 | + Note that the dark color mode is only available from Windows 11 on or later versions. If the system is set to a high contrast mode, the dark mode is not available. |
| 1835 | + </para> |
| 1836 | + <para> |
| 1837 | + <b>Note for Visual Basic:</b> If you are using the Visual Basic Application Framework, you should set the color mode by handling the Application Events (see "WindowsFormsApplicationBase.ApplyApplicationDefaults"). |
| 1838 | + </para> |
| 1839 | + </remarks> |
1817 | 1840 | </Docs>
|
1818 | 1841 | </Member>
|
1819 | 1842 | <Member MemberName="SetCompatibleTextRenderingDefault">
|
@@ -2226,9 +2249,16 @@ The high DPI mode is set once per process. For more information about setting th
|
2226 | 2249 | <ReturnType>System.Windows.Forms.SystemColorMode</ReturnType>
|
2227 | 2250 | </ReturnValue>
|
2228 | 2251 | <Docs>
|
2229 |
| - <summary>To be added.</summary> |
| 2252 | + <summary>Gets the system color mode setting of the OS system environment.</summary> |
2230 | 2253 | <value>To be added.</value>
|
2231 |
| - <remarks>To be added.</remarks> |
| 2254 | + <remarks> |
| 2255 | + <para> |
| 2256 | + The color setting is determined based on the operating system version and its system settings. It returns <see cref="F:System.Windows.Forms.SystemColorMode.Dark" /> if the dark mode is enabled in the system settings, |
| 2257 | + <see cref="F:System.Windows.Forms.SystemColorMode.Classic" /> if the color mode equals the light, standard color setting. |
| 2258 | + </para> |
| 2259 | + <para>SystemColorMode is supported on Windows 11 or later versions.</para> |
| 2260 | + <para>SystemColorModes is not supported, if the Windows OS <c>High Contrast Mode</c> has been enabled in the system settings.</para> |
| 2261 | + </remarks> |
2232 | 2262 | </Docs>
|
2233 | 2263 | </Member>
|
2234 | 2264 | <Member MemberName="ThreadException">
|
|
0 commit comments