Change Accent Color in Windows 10 UWP

后端 未结 4 1546
迷失自我
迷失自我 2020-12-07 23:29

I dont really want to use the accent color that the user has chosen in Windows in my app, and instead want to have my own color show. I can change it manually on all the ite

4条回答
  •  一向
    一向 (楼主)
    2020-12-07 23:56

    Add the following to App.xaml if you are not using any templates or ResourceDictionaries:

    
        #FFCB2128
    
    

    If you are using the Minimal Template10 template, then add the following line to Styles/Custom.xaml after the CustomColor and ContrastColor values:

    #FFCB2128
    

    If you have your own ResourceDictionary somewhere else, linked from App.xaml, then similarly add the "Color" line there.

提交回复
热议问题