Windows Phone 7: Highlight Selected Listbox item

后端 未结 1 1540
一生所求
一生所求 2020-12-06 06:17

I have the following XAML (simple list box with custom DataTemplate). I\'m trying to figure out how to highlight the selected item (maybe background colour change). I figure

1条回答
  •  感情败类
    2020-12-06 06:37

    Does my answer from this post help?

    I think the easiest way would be to go via Expression Blend. Right click on your ListBox (the main control, not its items). Then go to "Edit Additional Templates....(Item Container Style)....Edit Current". Blend will then load a new page for you to modify the styling of the container. In the top left pane (where you can choose project, assets etc...) click on "States". You'll see a list of states. Modify the ones you'd like to change and hopefully that should work

    EDIT:

    
     
      
       
        
        
    
       
       
        
         
          
          
         
        
        
         
          
         
        
        
         
          
         
        
       
      
      
     
    
    

    0 讨论(0)
提交回复
热议问题