top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?

0 votes
267 views
How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?
posted Jun 21, 2016 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
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);
answer Jun 21, 2016 by Shivaranjini
...