Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Gays.
I want to convert this WPF style XAML to Silverlight can aby one help me:

XML
<Style x:Key="LabelStyle" TargetType="Label">
           <Setter Property="Background" Value="Transparent"/>
           <Style.Triggers>
               <Trigger Property="Content" Value="abc">
                   <Setter Property="Background" Value="Red" />
               </Trigger>
           </Style.Triggers>
       </Style>



this is my wpf XAML Code can any help me to convert it to silverlight.
and thx for your help and passion.
Posted

1 solution

Silverlight only support Event Triggers.

But you can use VisualStateManager[^] or Behavior and Trigger in WPF/Silverlight[^] for that purpose.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900