[Other Issues]: Remove DN9 WFO1000 Warnings #1840
Labels
completed
This issue has been completed.
version:95
All things to do with V95.
version:100
All things to do with V100.
Milestone
First
Edit:Enabled in PR #1854 & #1856Krypton-Suite/Standard-Toolkit/Source/.editorconfig
Set:dotnet_diagnostic.WFO1000.severity
from:suggestion
towarning
From the build menu run: Clean and rebuild that will bring forward the WFO1000 warnings
Practically this can be done from the VS 2022 Preview with DN9-RC2
The Visibility can differ between the type and use of the properties brought forward through the warnings. So each property has to be evaluated on its own.
Use the explanation below to apply the correct attribute
The
DesignerSerializationVisibility
enum in .NET is used to control how a property or event is serialized by the designer (like the Visual Studio designer) into the source code. It has three options:1.
Visible
(DesignerSerializationVisibility.Visible
)Visible
, the designer serializes the property's value, enabling it to be saved in the form's code and restored at runtime.2.
Hidden
(DesignerSerializationVisibility.Hidden
)Hidden
are ignored by the designer, meaning their values will not be saved to the form’s generated code, even if you set them in the designer.3.
Content
(DesignerSerializationVisibility.Content
)Content
, the designer serializes each item or subproperty within the property instead of the entire property.Example Usage:
Part of: #1777
The text was updated successfully, but these errors were encountered: