![]() ![]() īy the way, i found the another way for android=> Resource=>Style.xml=> add this code( " ![]() I am trying you demo code.But Other color like Red or blue is OK and When i change to Transparent the background color is change back to orange and I need to change the background color to transparent. Then configure it on each platform.Īttachment is a whole sample you can refer to. Try to define a bindable property in your custom view cell class. Moreover if you want to change the color on forms dynamically instead of hard code. ![]() Var extendedViewCell = sender as ViewCell Protected override void OnCellPropert圜hanged(object sender, 圜hangedEventArgs args)īase.OnCellPropert圜hanged(sender, args) _cellCore = base.GetCellCore(item, convertView, parent, context) Protected override GetCellCore(Cell item, convertView, ViewGroup parent, Context context) Public class ViewCellRendererForAndroid : ViewCellRenderer Var cell = base.GetCell(item, reusableCell, tv) Ĭell.SelectedBackgroundView = new UIView įor Android Public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv) Firstly, create your own view cell class: public class MyViewCell: ViewCellįor iOS Ĭlass ViewCellRendererForiOS: ViewCellRenderer We could use custom renderer to change that property on each platform. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |