@@ -2655,7 +2655,6 @@ public event FormClosingEventHandler? FormClosing
2655
2655
/// </summary>
2656
2656
[ SRCategory ( nameof ( SR . CatAppearance ) ) ]
2657
2657
[ SRDescription ( nameof ( SR . FormBorderColorChangedDescr ) ) ]
2658
- [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2659
2658
public event EventHandler ? FormBorderColorChanged
2660
2659
{
2661
2660
add => Events . AddHandler ( s_formBorderColorChanged , value ) ;
@@ -2667,7 +2666,6 @@ public event EventHandler? FormBorderColorChanged
2667
2666
/// </summary>
2668
2667
[ SRCategory ( nameof ( SR . CatAppearance ) ) ]
2669
2668
[ SRDescription ( nameof ( SR . FormCaptionBackColorChangedDescr ) ) ]
2670
- [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2671
2669
public event EventHandler ? FormCaptionBackColorChanged
2672
2670
{
2673
2671
add => Events . AddHandler ( s_formCaptionBackColorChanged , value ) ;
@@ -2679,7 +2677,6 @@ public event EventHandler? FormCaptionBackColorChanged
2679
2677
/// </summary>
2680
2678
[ SRCategory ( nameof ( SR . CatAppearance ) ) ]
2681
2679
[ SRDescription ( nameof ( SR . FormCaptionTextColorChangedDescr ) ) ]
2682
- [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2683
2680
public event EventHandler ? FormCaptionTextColorChanged
2684
2681
{
2685
2682
add => Events . AddHandler ( s_formCaptionTextColorChanged , value ) ;
@@ -2691,7 +2688,6 @@ public event EventHandler? FormCaptionTextColorChanged
2691
2688
/// </summary>
2692
2689
[ SRCategory ( nameof ( SR . CatAppearance ) ) ]
2693
2690
[ SRDescription ( nameof ( SR . FormCornerPreferenceChangedDescr ) ) ]
2694
- [ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
2695
2691
public event EventHandler ? FormCornerPreferenceChanged
2696
2692
{
2697
2693
add => Events . AddHandler ( s_formCornerPreferenceChanged , value ) ;
@@ -4198,12 +4194,10 @@ protected override void OnHandleCreated(EventArgs e)
4198
4194
SetFormAttributeColorInternal ( DWMWINDOWATTRIBUTE . DWMWA_TEXT_COLOR , formCaptionTextColor . Value ) ;
4199
4195
}
4200
4196
4201
- #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.
4202
4197
if ( Properties . TryGetValue ( s_propFormCornerPreference , out FormCornerPreference ? cornerPreference ) )
4203
4198
{
4204
4199
SetFormCornerPreferenceInternal ( cornerPreference . Value ) ;
4205
4200
}
4206
- #pragma warning restore WFO5001
4207
4201
4208
4202
UpdateLayered ( ) ;
4209
4203
@@ -4959,7 +4953,6 @@ internal override unsafe void RecreateHandleCore()
4959
4953
Debug . Assert ( result ) ;
4960
4954
}
4961
4955
4962
- #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.
4963
4956
if ( TopLevel && IsHandleCreated )
4964
4957
{
4965
4958
FormCornerPreference formCornerPreference = Properties . GetValueOrDefault ( s_propFormCornerPreference , FormCornerPreference . Default ) ;
@@ -4974,7 +4967,6 @@ internal override unsafe void RecreateHandleCore()
4974
4967
colorValue = Properties . GetValueOrDefault ( s_propFormBorderColor , Color . Empty ) ;
4975
4968
SetFormAttributeColorInternal ( DWMWINDOWATTRIBUTE . DWMWA_BORDER_COLOR , colorValue ) ;
4976
4969
}
4977
- #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.
4978
4970
4979
4971
GC . KeepAlive ( this ) ;
4980
4972
}
0 commit comments