In TemplateFill Property of Gallery, use ThisItem.IsSelected to change the color. If( ThisItem.IsSelected, White, LightGray )