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
"Target Account Name is Incorrect"
Problem with update query
SQL criteria applied to nested queries
Export Worksheets with Values and additional Code for Cell Protection
How to zip/unzip with VB.NET?
Antivirus solution for Windows Server 2008 R2 Core.
Prompt user to verify data message when user hits add record button in access
Terminal Server port configuration
Caluculate if met SLA for completetion of task
One of my Excel file always gives me a "File already open" messge.