Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/04/2012, 07:41
alexg88
 
Fecha de Ingreso: abril-2011
Mensajes: 1.342
Antigüedad: 13 años
Puntos: 344
Respuesta: Aplicar Style en WPF

Es fácil:

Código C#:
Ver original
  1. TextBlock etiqueta = new TextBlock();
  2.  
  3. //Se supone que tienes un recurso con el nombre "TitleText"
  4. etiqueta.Style = this.Resources["TitleText"] as Style;