Microsoft
Software
Hardware
Network
Question : WPF: Applying multiple styles
Is there a way to apply multiple styles to a WPF control? I've tried this:
Style="{StaticResource Style1} | {StaticResource Style2} "
But get this error:
The text ' {StaticResource labelStyle2}' is not allowed after the closing '}' of a MarkupExtension expression.
Answer : WPF: Applying multiple styles
Two styles cannot be applied on a control. Instead Inherit the Style1 and Style2 to make a new style and then apply the new style:
Then use Style2 as
If any property is common in both styles then property value of Style2 will be considered.
Thx!
Swaps...
Random Solutions
SQL Express 2005 ODBC Connection Error 67 and 17
Runtime error 48. Error Loading .dll
Email report in PDF gives error
closing form without saving
Access 2003 - How to create a timeline report
Exchange 2003 Likely Corruption help
SharePoint List: How to add google maps location
Create a MS Access Database with an SQL / Text File
Automatically calling an external hyperlink in Power Point 2007
Can't Crawl SharePoint Sites