[英]Universal App - Transparent Buttons in the title bar?
所以我有這段代碼
var applicationView = ApplicationView.GetForCurrentView();
var titleBar = applicationView.TitleBar;
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
titleBar.ButtonBackgroundColor = Colors.Transparent;
titleBar.ButtonForegroundColor = Colors.White;
但是菜單按鈕(關閉,最小化,最大化)沒有指定的透明背景。 即使我使用ARGB並以這種方式設置它們,似乎Alpha值也被忽略了。 有什么辦法可以使它們透明?
將ButtonBackgroundColor(等)設置為Colors.Transparent應該起作用。 我確認您的代碼可以讓我的背景圖片在當前版本中顯示出來。 如果您不在10158上,請升級並嘗試一下。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.