Is there a way to set the fonts when a Monotouch Dialog class has been instansiated?
[Section("This is the header")]
This will render with the default blue text with drop shadow, but I can't find where that font is being set. Is there a way to overwrite which font and color it uses?
I found a solution for those looking to replace ALL section headers in the entire solution. In
MonoTouch.Dialog
, there is a class namedDialogViewController
which is used when creating views with the reflection API. And in here, there's a method calledGetViewForHeader()
. Instead of sending back just the normalsection.HeaderView
, you can create a custom label and send that back.Remember to set the height, either manually or by getting the height from the label. You can also create a custom
UIView
, but a label was sufficient for me.