-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of Data
property
#2676
Comments
Here my opinion on this. |
I believe it is possible, and we should remove the usages of Data internally, except if used for a view that is never exposed eternally. But, to be clear, Designer is NOT part of the library and should be able to use it as it see fits. |
Related: #2502 This PR (removing TopLevel completely) will fix one egregious violation of us using Data internally. |
We should add a Unit Test that uses reflection to find every subclass of |
Yes, I know. I only was asking @tznind if the |
Describe the bug
Just noticed that there are some internal uses within
Terminal.Gui
library of theData
field e.g.Terminal.Gui/Terminal.Gui/Views/FrameView.cs
Line 55 in fb3dde2
Terminal.Gui/Terminal.Gui/Views/Wizard/WizardStep.cs
Line 42 in fb3dde2
The documentation for this property indicates that we won't do this:
Within the designer, I use
Data
to track the field member name in the source code written out to .Designer.cs. And to store theDesign
(editable properties blueprint).So there is a meaning when
Data
has a value (user designed this view) and theres a meaning when it isnull
(this view is an artifact of another view e.g. ContentView).There may be other library users making similar assumptions.
Is it please possible to move the internal uses of this property to a new field or adjust the approach?
The text was updated successfully, but these errors were encountered: