-
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
Renames Frame
->Adornment
; changes Frame
to have a Border
subclass
#3158
Conversation
@BDisp take a look! Just a WIP, but... |
@@ -191,15 +191,15 @@ void ThicknessChangedHandler (object sender, EventArgs e) | |||
Margin.ThicknessChanged -= ThicknessChangedHandler; | |||
Margin.Dispose (); | |||
} | |||
Margin = new Frame () { Id = "Margin", Thickness = new Thickness (0) }; | |||
Margin = new Frame () { Thickness = new Thickness (0) }; |
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.
In the future if Margin
has a different behavior than Frame
then you will to sub-class it.
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.
Yessir.
I already have one difference: Margin uses SuperView color scheme. Border and padding uses View.
I started in on adding subviews to border. It's complicated so I'm not going to do it in this pr. I'll neaten this one up a bit more and merge it and do another for that. |
Ok, I also trying to use the |
On the padding thing: it'd be great if you opened an Issue on that. I'd love to dig into it with you with focus (and a simple example, not TabView). On name: I think you know I've been wishy-washy on Frame vs Adornment as the name. Your comment is helpful. I'll strongly consider it! |
I was trying in this PR #2980 but didn't commit/push nothing addressed with
Ok at least I did you reflect about it 😃 |
When working on architecture, I'm a fan of starting with just unit tests and a very simple Scenario vs. a major change like what needs to happen to TabView. TabView is a pretty complex beast, so yes. |
…v2_frame_border_subclass
Frame
to have a Border
subclassFrame
->Adornment
; changes Frame
to have a Border
subclass
I really appreciated for you have reconsider to change from |
@tig how about rename the |
|
See this discussion: #2994 (comment)
Margin
subclass ofFrame
Border
subclass ofFrame
Padding
subclass ofFrame
Border
line style inherits fromSuperView
(if not set explicitly).Frames
scenarioFrame
->Adornment
Frames
scenario etc... renameAdornment
unit tests