简体   繁体   English

如何找出TableSection定义的默认颜色的位置?

[英]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.

相关问题 Xamarin如何实现iOS <TableSection> 以及如何找出标头和颜色的确切大小? - How does Xamarin implement an iOS <TableSection> and how can I find out the exact size of the header and color? 如何在TableView的第一个TableSection之后附加新的TableSection? - How can I append a new TableSection after the 1st TableSection of a TableView? 在C#中创建TableSection时如何添加参数? - How can I add parameters when creating a TableSection in C#? 如何获得自定义的TableSection页脚以响应动态更改? - How can I get a custom TableSection footer to respond to dynamic changes? 如何在具有StackLayout内的网格的TableSection中模拟ViewCell? - How can I simulate a ViewCell in a TableSection with a Grid inside a StackLayout? 是否可以通过指定TableSection的名称来删除并附加在TableSection之后? - Can I remove and append after a TableSection by specifying the name of that TableSection? 我该怎么做 <TableSection> 在Apple iOS设置页面上看起来像是带有左侧图标的? - How can I make my <TableSection> look like that on the Apple iOS Settings page with an icon on the left? 如何在Xamarin表单中使用XAML隐藏TableSection? - How do I hide a TableSection with XAML in Xamarin Forms? Xamarin Forms-如何创建自定义渲染以为TableSection提供默认的iOS页脚? - Xamarin Forms - How to create custom render to give TableSection the default iOS Footer? 使用自定义渲染器,我可以使TableSection.Title以小混合的形式出现吗? - With a custom renderer can I make a TableSection.Title appear in small mixed case?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM