简体   繁体   English

如何更改应用程序后退按钮的背景色-Windows 10-C#

[英]How to Change Background color App Back Button - Windows 10 - C#

How to change the background color of Back button in native Windows 10 apps? 如何在Windows 10本机应用程序中更改``后退''按钮的背景颜色?

This is what it currently looks like: 这是当前的样子:

按键

You can achive it in the code behind like this: 您可以像下面这样在后面的代码中实现它:

public MainPage()
    {
        this.InitializeComponent();              

        var appView = ApplicationView.GetForCurrentView();
        appView.TitleBar.ButtonBackgroundColor = Colors.LightGreen;
    }

Hope it works for you 希望这对你有用

Regards Ilija 问候伊利亚

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM