kos
kos

Reputation: 269

MonoTouch.Dialog: Using different font within the same StringElement

Is it possible to assign different font to text that is associated with a single StringElement in MonoTouch.Dialog, e.g. Reminder: Doctor's appointment

Upvotes: 2

Views: 466

Answers (2)

poupou
poupou

Reputation: 43553

Like @Jason said you can always create your own Element. In fact I generally do that anyway even when my customization needs are minimal. You can have a look at MessageElement to see how this can be done to render different strings.

You can also opt for a simpler approach using UIViewElement and define your UIView to have two labels with different font or take complete control with OwnerDrawElement.

Upvotes: 2

Jason
Jason

Reputation: 89102

Look at StyledStringElement instead. Although I'm not sure that it allows you to mix styles within a single element. You may need to create a custom element for that.

Upvotes: 2

Related Questions