[英]How to change the color of the gridviewitem when mouse over on it in windows8
我創建了一個gridview,當鼠標移到它上面時,背景顏色變為紫色,如何停止這種顏色變化行為?
在WPF中,它很簡單。 您需要重寫SystemColors.HighlightBrushKey 。
在Windows 8 Modern UI應用程序中,這有點復雜。 它涉及使用視覺狀態管理器覆蓋控制模板和改變視覺狀態 。 此msdn論壇問題中提供了解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.