@@ -2183,6 +2183,7 @@ protected override void SetVisibleCore(bool value)
2183
2183
[ SRDescription ( nameof ( SR . FormCornerPreferenceDescr ) ) ]
2184
2184
[ Browsable ( false ) ]
2185
2185
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
2186
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2186
2187
public FormCornerPreference FormCornerPreference
2187
2188
{
2188
2189
get => Properties . GetValueOrDefault ( s_propFormCornerPreference , FormCornerPreference . Default ) ;
@@ -2220,6 +2221,7 @@ public FormCornerPreference FormCornerPreference
2220
2221
/// <param name="e">
2221
2222
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
2222
2223
/// </param>
2224
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2223
2225
protected virtual void OnFormCornerPreferenceChanged ( EventArgs e )
2224
2226
{
2225
2227
if ( Events [ s_formCornerPreferenceChanged ] is EventHandler eventHandler )
@@ -2228,6 +2230,7 @@ protected virtual void OnFormCornerPreferenceChanged(EventArgs e)
2228
2230
}
2229
2231
}
2230
2232
2233
+ #pragma warning disable WFO5001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
2231
2234
private unsafe void SetFormCornerPreferenceInternal ( FormCornerPreference cornerPreference )
2232
2235
{
2233
2236
DWM_WINDOW_CORNER_PREFERENCE dwmCornerPreference = cornerPreference switch
@@ -2245,6 +2248,7 @@ private unsafe void SetFormCornerPreferenceInternal(FormCornerPreference cornerP
2245
2248
& dwmCornerPreference ,
2246
2249
sizeof ( DWM_WINDOW_CORNER_PREFERENCE ) ) ;
2247
2250
}
2251
+ #pragma warning restore WFO5001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
2248
2252
2249
2253
/// <summary>
2250
2254
/// Sets or gets the Form's border color.
@@ -2271,6 +2275,7 @@ private unsafe void SetFormCornerPreferenceInternal(FormCornerPreference cornerP
2271
2275
[ SRDescription ( nameof ( SR . FormBorderColorDescr ) ) ]
2272
2276
[ Browsable ( false ) ]
2273
2277
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
2278
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2274
2279
public Color FormBorderColor
2275
2280
{
2276
2281
get => Properties . GetValueOrDefault ( s_propFormBorderColor , Color . Empty ) ;
@@ -2298,6 +2303,7 @@ public Color FormBorderColor
2298
2303
/// <param name="e">
2299
2304
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
2300
2305
/// </param>
2306
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2301
2307
protected virtual void OnFormBorderColorChanged ( EventArgs e )
2302
2308
{
2303
2309
if ( Events [ s_formBorderColorChanged ] is EventHandler eventHandler )
@@ -2331,6 +2337,7 @@ protected virtual void OnFormBorderColorChanged(EventArgs e)
2331
2337
[ SRDescription ( nameof ( SR . FormCaptionBackColorDescr ) ) ]
2332
2338
[ Browsable ( false ) ]
2333
2339
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
2340
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2334
2341
public Color FormCaptionBackColor
2335
2342
{
2336
2343
get => Properties . GetValueOrDefault ( s_propFormCaptionBackColor , Color . Empty ) ;
@@ -2359,6 +2366,7 @@ public Color FormCaptionBackColor
2359
2366
/// <param name="e">
2360
2367
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
2361
2368
/// </param>
2369
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2362
2370
protected virtual void OnFormCaptionBackColorChanged ( EventArgs e )
2363
2371
{
2364
2372
if ( Events [ s_formCaptionBackColorChanged ] is EventHandler eventHandler )
@@ -2392,6 +2400,7 @@ protected virtual void OnFormCaptionBackColorChanged(EventArgs e)
2392
2400
[ SRDescription ( nameof ( SR . FormCaptionTextColorDescr ) ) ]
2393
2401
[ Browsable ( false ) ]
2394
2402
[ DesignerSerializationVisibility ( DesignerSerializationVisibility . Hidden ) ]
2403
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2395
2404
public Color FormCaptionTextColor
2396
2405
{
2397
2406
get => Properties . GetValueOrDefault ( s_propFormCaptionTextColor , Color . Empty ) ;
@@ -2420,6 +2429,7 @@ public Color FormCaptionTextColor
2420
2429
/// <param name="e">
2421
2430
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
2422
2431
/// </param>
2432
+ [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2423
2433
protected virtual void OnFormCaptionTextColorChanged ( EventArgs e )
2424
2434
{
2425
2435
if ( Events [ s_formCaptionTextColorChanged ] is EventHandler eventHandler )
@@ -4899,10 +4909,12 @@ private void SetFormTitleProperties()
4899
4909
SetFormAttributeColorInternal ( DWMWINDOWATTRIBUTE . DWMWA_TEXT_COLOR , formCaptionTextColor . Value ) ;
4900
4910
}
4901
4911
4912
+ #pragma warning disable WFO5001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
4902
4913
if ( Properties . TryGetValue ( s_propFormCornerPreference , out FormCornerPreference ? cornerPreference ) )
4903
4914
{
4904
4915
SetFormCornerPreferenceInternal ( cornerPreference . Value ) ;
4905
4916
}
4917
+ #pragma warning restore WFO5001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
4906
4918
}
4907
4919
}
4908
4920
0 commit comments