Skip to content
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

Allow use of UITableViewStyle.GroupedInset style with TableView/ListView #8124

Open
warpedgeoid opened this issue Jun 16, 2022 · 2 comments
Open

Comments

@warpedgeoid
Copy link

Description

It would be great if TableView and ListView could take advantage of the UITableViewStyle.InsetGrouped style on iOS and Catalyst. Currently, the style is hardcoded to either UITableViewStyle.Plain or UITableViewStyle.Grouped depending on the intent specified for the TableView or ListView.

Public API Changes

Addition of a new option for creating TableViews/ListViews where the underlying native UITableViews use UITableViewStyle.InsetGrouped.

Something like the following platform-specific configuration:

On<iOS>.SetUseInsetGroups(tableView, true);

Intended Use-Case

The creation of settings UIs that match the style of the system Settings pages on iOS. This is also important for matching the visual styling of native apps being ported to .NET and Maui.

@rjspencer91
Copy link

+1

Really need this functionality. We are able to override the CreateNativeControl in a subclass of TableViewRenderer, provide a UITableView(InsetGrouped), and tell MAUI to use that renderer.

But there doesn't seem to be a way to do it for ListView. CreateNativeControl is never called on ListView, looks like it's creating it's own UITableViewController internally?

CollectionView also can't seem to use it as again, internally it's using an UICollectionViewLayout that doesn't support inset grouped styling

@jsuarezruiz jsuarezruiz added this to the Triaged milestone Jun 6, 2024
@samhouts samhouts modified the milestones: Triaged, Backlog Aug 26, 2024
@osaleem303
Copy link

osaleem303 commented Sep 1, 2024

+1
same issue here, CreateNativeControl is never called on ListView or I am missing something here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants