-
Notifications
You must be signed in to change notification settings - Fork 696
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
Fixes #3171. Remove View and subclass constructors with parameters. #3181
Fixes #3171. Remove View and subclass constructors with parameters. #3181
Conversation
…ue when Application.Top is null, should return Size.Empty.
@tig this is ready for review. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments.
FWIW, I don't think we have to remove them ALL at once, but I DO think that before we release V2 ALL View constructors with parameters should be gone unless there's a really, really good reason for it.
I thought you only want get rid those with frame parameters. Now it's more clear and only the readonly properties that only be set through a parameter passed on the constructor will be used. I'll procced then. |
…t.MaxValue when Application.Top is null, should return Size.Empty." This reverts commit cf9c24b.
For "readonly" parameters, |
@tig this is finally already ready for review. The only I didn't removed was the |
There is a public constructor: public FileDialog () : this (new FileSystem ()) { } So you could make this one internal: public FileDialog (IFileSystem fileSystem)
Need to be careful here as the file system prop is shared with the dialog style. |
My question was whether I could give the user access to obtain data from the |
@BDisp did you apply resharper code-cleanup to all the files in the solution in this PR? For example, it looks like I just want to make sure I know what I'm looking at before I dive in and review. |
Yes I did for all the files that were touched by the changes.
It changed because I did a find/replace on the solution scope from
I understand. |
As in the comment is explicitly is for testing ( |
@tig I remembered that I only started running resharper code-cleanup after you asked. Now I reflected that it might not have been done for some files that were previously changed and that perhaps it was not changed in subsequent commitments. After all, there were still 46 files to be carried out by resharper code-cleanup and already corrected in the commit b4650fa. |
…Empty list even with Width or Height equal to zero.
Why R# From: To: object _data;
public object Data {
get => _data;
set => _data = value;
} Is this really necessary? |
I reverted this changes and reapply the R# cleanup code again and this doesn't happened again. I don't know why this conversion was apply before. Solved. |
I think I'll have some bandwidth this week to work on this again. |
@BDisp please revert the TextFormatter changes you made in this PR. If you can, also please, revert any code reformatting you did that was not in a file impacted by actually removing the parameters from constructors. This will greatly assist me in merging this. Thanks. |
I will revert it.
Unfortunately this won't be possible because they was done all together with the removing parameters from constructors and it isn't easy to revert that, sorry. My brain explode by only thinking to do that 🤯 |
Sorry @tig. I forgot to revert the |
Fixes
View
and subclass constructors with parameters #3171Proposed Changes/Todos
_fileSystem
field and it's only for testing.Changes checklist:
Initialize
toSetInitialProperties
namespace
bracesusing
Pull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)