How to set different HorizontalAlignment to ListBoxItems

前端 未结 5 1098
情歌与酒
情歌与酒 2021-01-21 12:12

I posted a question yesterday but I think I failed to explain it correctly.

Let me try again.

So this is my goal:

5条回答
  •  别那么骄傲
    2021-01-21 12:39

    In WPF you would need to add

        
            
        
    

    to your ListBox and set the "WHATEVER" to a property of your items that has the alignment specified... I don't know if that works for Windows Phone but it seems worth a try since you didn't mention the ItemContainerStyle...

提交回复
热议问题