2014-02-28から1日間の記事一覧

WindowsストアアプリのListViewのアイテム選択時の枠の色を変える

WindowsストアアプリのListViewでアイテムの選択時の枠の色を変える方法です。 デフォルトは選択したアイテムに紫色の枠が付くと思います。 これを赤色にしたい場合は、App.xamlに以下のように書くだけで <Application.Resources> <SolidColorBrush x:Key="ListViewItemSelectedBackgroundThemeBrush" Color="Red" /> <SolidColorBrush x:Key="ListViewItemPointerOverBackgroundThemeBrush" Color="Red" /> </solidcolorbrush></solidcolorbrush></application.resources>