TelerikDeveloper.com

TelerikDeveloper.com

Hosea 7/11/2012 1:36:27 PM

Telerik - Win Forms RadListBox and RadDropDownList - change the styling of items in the list

I have an app that I'm creating that is targeted at a Tablet, I need to make the font in all the controls larger. The code to change the font size of the items in the dropdowns too me quite a while to find. I thought I'd save it here. It's not complicated or overly cool... just a little cryptic.

 



 

Private myFont As New Font("Segoe UI", 14, FontStyle.Bold)
  
Private Sub ListElement_VisualItemFormatting(sender As Object, args As VisualItemFormattingEventArgs)
    args.VisualItem.Font = myFont
End Sub

 

http://www.telerik.com/help/winforms/dropdown-and-listcontrol-dropdownlist-customizing-items.html