[英]How can I found out where the default colors are defined for TableSection?
I would like to learn more about the Xamarin source. 我想了解更多有关Xamarin来源的信息。 In particular I would like to find out what the background color of the TableSection title area is:
我特别想找出TableSection标题区域的背景颜色是:
<TableSection.Title>
ABC
</TableSection.Title>
Is the code that sets this available for us to look at? 设置此代码的代码可供我们查看吗?
It's a platform specific thing and is not defined in Xamarin.Forms somewhere. 这是平台特定的东西,未在Xamarin.Forms中定义。 Changing it also means you will need a custom renderer, so your best bet is to simply search for the background color of their platform specific counterparts.
更改它还意味着您将需要自定义渲染器,因此最好的选择是简单地搜索其平台特定对象的背景色。
For iOS this is rendered as a UITableView
of which the default background color is #F7F7F7
from what I can find online. 对于iOS,这是作为
UITableView
呈现的,根据我在网上可以找到的默认背景颜色为#F7F7F7
。
For Android its set through drawables present in the theme so I'm guessing the color differs dependant on the theme. 对于Android,其通过主题中存在的可绘制对象进行设置,因此我猜颜色会因主题而异。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.