ApplicationBarIconButton is null

前端 未结 5 761
一个人的身影
一个人的身影 2021-02-07 02:32

Why is my ApplicationBarIconButton null?


    

        
5条回答
  •  鱼传尺愫
    2021-02-07 03:35

    try this

    Microsoft.Phone.Shell.ApplicationBarIconButton btn = ApplicationBar.Buttons[0] as Microsoft.Phone.Shell.ApplicationBarIconButton;
    btn.IsEnabled = false;
    

提交回复
热议问题