Silverlight Feeds - All your Silverlight feeds in one place.

Sponsors

Thursday, February 04, 2010

[Blend] Extract Template from a Style

by Corrado Cavalli via Corrado's BLogs on 2/4/2010 10:30:34 PM

Quando si usa la funzionalità Edit Template->Edit a Copy di Blend

image

Blend in realtà crea uno style che applica il template appena estratto.
Personalmente mi piace organizzare le risorse all’interno di resource dictionaries (styles.xaml, templates.xaml…) e, sebbene Blend permetta di specificare dove posizionare lo style il risultato è che style e template sono tutt’uno e spesso finisco per spostare il template nel relativo resource dictionary e linkarlo nello style via {StaticResource} manualmente.
Oggi, Laurent, mi ha indicato come fare il tutto direttamente da Blend: Mentre si è in modalità di editing del template, selezionate il simbolo dello style nell’elenco superiore:

image

dopodichè selezionate il property peg della proprietà Template e selezionate Convert to new resource

image

e decidete dove memorizzare il template. smile_regular

Technorati Tags:
email it!bookmark it!digg it!

Original Post: [Blend] Extract Template from a Style

Legal Note

The content of the postings is owned by the respective author. Silverlight Feeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on Silverlight Feeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us