How to set the style programmatically

In the code-behind file of the control, try:

this.Style = Resources["ResourceName"] as Style;

Leave a Comment