-
Notifications
You must be signed in to change notification settings - Fork 210
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
Custom Root Element Summary when not using Radio or Checkbox groups #185
base: master
Are you sure you want to change the base?
Conversation
Summaries are automatically generated for RootElements with radio and checkbox groups. The DefaultSummary prop lets you set this summary on RootElements which open ViewControllers.
MonoTouch.Dialog/Elements.cs
Outdated
@@ -2816,7 +2824,7 @@ public override UITableViewCell GetCell (UITableView tv) | |||
NSString key = summarySection == -1 ? rkey1 : rkey2; | |||
var cell = tv.DequeueReusableCell (key); | |||
if (cell == null){ | |||
var style = summarySection == -1 ? UITableViewCellStyle.Default : UITableViewCellStyle.Value1; | |||
var style = UITableViewCellStyle.Value1; |
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.
Why is this change needed?
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.
Hi!
well because there is another change in the same pull request which always
renders a summary from the property DefaultSummary (in lack of a better
name). If UITableViewCellStyle.Default is used the summary wont display.
The DefaultSummary is a way to render a summary manually if the RootElement
pushes a new ViewController instead of leading to a Group.
Maybe I got it all wrong but this was the only way I could display a
summary when not using groups.
Thanks for providing MT.D! It saves my day, everyday!
/Henrik
2013/7/2 Miguel de Icaza notifications@github.com
In MonoTouch.Dialog/Elements.cs:
@@ -2816,7 +2824,7 @@ public override UITableViewCell GetCell (UITableView tv)
NSString key = summarySection == -1 ? rkey1 : rkey2;
var cell = tv.DequeueReusableCell (key);
if (cell == null){
var style = summarySection == -1 ? UITableViewCellStyle.Default : UITableViewCellStyle.Value1;
var style = UITableViewCellStyle.Value1;
Why is this change needed?
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/185/files#r4976287
.
MVH
Henrik Weimenhög
Added an override on Matches which checks Subject, Body and Sender properties
Setting the EnableScope property to true will expand the SearchBar instead of overlapping the topmost element
For convenience, lets have each class in a separate file as is common. makes it easier to navigate the project.
Added an event for tapping radio elements
….Dialog Conflicts: MonoTouch.Dialog/Elements.cs
no custom drag to refresh animation anymore
Allow messageElements to display full body text
To reset the search filter you need to tap the X as expected instead.
Summaries are automatically generated for RootElements with radio and
checkbox groups. The DefaultSummary prop lets you set this summary on
RootElements which open ViewControllers.