How to force windows phone 8 app to be run in light theme

前端 未结 4 1973
梦毁少年i
梦毁少年i 2020-12-17 20:20

I have developed a windows phone application, i want that app to be run in light theme, irrespective of what user have set. means is there any way to set a default theme for

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 21:00

    For Windows phone 8.1 you can use:

    
    
    

    Or

    public App()
        {
            this.RequestedTheme = ApplicationTheme.Light;
    
            this.InitializeComponent();
            this.Suspending += this.OnSuspending;
        }
    

    Source : Windows phone 8 How to be always on one theme even if phone's theme changed

提交回复
热议问题