What is the replacement for DataTrigger in Silverlight

前端 未结 4 1312
南笙
南笙 2020-12-03 05:26

This is my scenario.

I have 2 Properties. Type and State.

Type is an Enum with 3 values eg, ball, car, arrow. State is an int which would accept 3 state valu

4条回答
  •  难免孤独
    2020-12-03 05:51

    The blog post "Expression SDK in Silverlight–DataTrigger Example" covers it pretty well. Here is a sample of what he does:

    
        
            
        
    
        
            
        
    
    

    (With the two XML namespace prefixes i and ia being defined as follows:)

    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:ia="http://schemas.microsoft.com/expression/2010/interactions"
    

提交回复
热议问题