How to change the image on the ApplicationBar from C#?

前端 未结 3 1523
长情又很酷
长情又很酷 2021-01-21 14:31

I have a small C# project that has an ApplicationBar. But I have a small problem: I want 8 icons on the bar, and the ApplicationBar only supports 4. I came up with a solution (i

3条回答
  •  盖世英雄少女心
    2021-01-21 14:50

    The syntax above gave me a compile error. With some additional research, I got this to work for me:

    ApplicationBar.Buttons.Remove((ApplicationBarIconButton) ApplicationBar.Buttons[0]);
    

提交回复
热议问题