-
Notifications
You must be signed in to change notification settings - Fork 10
Add MList #44
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
Add MList #44
Conversation
| TripleLine | ||
| } | ||
|
|
||
| public class MItem |
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.
Create MItem.cs for MItem class.
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.
Done
|
|
||
| public EvasObject Control { get; set; } | ||
|
|
||
| public MItem(string title, MListStyle style = MListStyle.OneLine) |
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.
Any reason to provide optional parameter only for style?
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.
Done
|
|
||
| public EvasObject Control { get; set; } | ||
|
|
||
| public MItem(string title, string icon = null) |
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.
avoid optional parameter as a public API. Is is necessary>
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.
Done
| } | ||
| } | ||
|
|
||
| public IList<MItem> Items |
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.
what about using ObservableCollection<MItem> instead?
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.
Done
|
|
||
| namespace Tizen.NET.MaterialComponents | ||
| { | ||
| public class MList : GenList, IColorSchemeComponent |
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.
As MList inherit GenList, all public APIs of GenList can be exposed. For example, user can use Append() to add item. How do you think about this?
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.
'MList' thinks it is to provide a 'Material Design', not to constrain its function.
So I think it's a class that makes the 'GenList' look like a 'Material Design', not just a 'Material Design' list.
|
New PR(#52) has been opened according to design changes |
Description of Change
This PR is for adding MList
Issues Resolved
API Changes
Added
Platforms Affected
Behavioral/Visual Changes
None
Before/After Screenshots
single line

double line

triple line

PR Checklist