ResourceDictionary resourceDir = new ResourceDictionary(); Windows.UI.Color redColor = Windows.UI.Colors.Red; Windows.UI.Color blueColor = Windows.UI.Colors.Blue; resourceDir.Add("item1", redColor); resourceDir.Add("item2", blueColor);