Search code examples
gridviewuwpmarkup

UWP set background color for GridView item's CheckBox


I mean this gray square at the corner of 'Warlords':

enter image description here

Also i'd like to set one pixel border around it.

Thanks!


Solution

  • Please refer GridViewItem style

    In that look for MultiSelectSquare Border control. Below i have given background color of checkbox to Red

    <Border x:Name="MultiSelectSquare"
                      Background="Red" BorderThickness="2" BorderBrush="Black"
                      Width="20"
                      Height="20"
                      Margin="0,2,2,0"
                      VerticalAlignment="Top"
                      HorizontalAlignment="Right"
                      Visibility="Collapsed" >