Bug 5652 - UIViewElement in Dialog needs to have a SelectionStyle property
Summary: UIViewElement in Dialog needs to have a SelectionStyle property
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- enhancement
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-06-14 12:15 UTC by Dylan
Modified: 2012-08-08 08:38 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
A UIViewElement whose background has been touched creating a nasty look (236.60 KB, image/png)
2012-06-14 12:16 UTC, Dylan
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Dylan 2012-06-14 12:15:23 UTC
If you create a UIViewElement (which is really awesome), when set to transparent can still be selected which makes it look awful. Can a SelectionStyle property be added to this element in order to set the UITableViewCellSelectionStyle? Or alternatively (but less flexible) is that when the UIViewElement is set to transparent that it's SelectionStyle is automatically set to UITableViewCellSelectionStyle.None.
Comment 1 Dylan 2012-06-14 12:16:43 UTC
Created attachment 2059 [details]
A UIViewElement whose background has been touched creating a nasty look
Comment 2 Dylan 2012-08-06 18:17:22 UTC
Any ideas?
Comment 3 Dylan 2012-08-07 19:06:04 UTC
This suggestion can be closed I guess.


    public class CustomViewElement : UIViewElement
    {
        public CustomViewElement(string caption, UIView view) : base(caption, view, true)
        {
        }
        

        public override UITableViewCell GetCell(UITableView tv)
        {
            var cell = base.GetCell(tv);
            cell.SelectionStyle = UITableViewCellSelectionStyle.None;
            return cell;
        } 
    }
Comment 4 Rolf Bjarne Kvinge [MSFT] 2012-08-08 08:38:18 UTC
Thank you for finding a solution!

I'm closing this now.