Example #1
0
        private static Uri CreateThemeResourceUri(Theme.SpecifiedColor theme)
        {
            var param = new Dictionary <string, string>
            {
                { "theme", theme.ToString() },
            };

            return(themeTemplate.BindByName(templateBaseUri, param));
        }
        static Uri CreateUwpThemeResourceUri(Theme.SpecifiedColor theme)
        {
#if NETCOREAPP
            var url = _uwpThemeTemplate
                      .AddParameters(new
            {
                theme = theme.ToString()
            })
                      .Resolve();
            return(new Uri(_templateBaseUri, url));
#else
            var param = new Dictionary <string, string>
            {
                { "theme", theme.ToString() },
            };
            return(_uwpThemeTemplate.BindByName(_templateBaseUri, param));
#endif
        }