Exemplo n.º 1
0
        private static Uri CreateAccentResourceUri(Accent.SpecifiedColor accent)
        {
            var param = new Dictionary <string, string>
            {
                { "accent", accent.ToString() },
            };

            return(accentTemplate.BindByName(templateBaseUri, param));
        }
Exemplo n.º 2
0
        static Uri CreateUwpAccentResourceUri(Accent.SpecifiedColor accent)
        {
#if NETCOREAPP
            var url = _uwpAccentTemplate
                      .AddParameters(new
            {
                accent = accent.ToString()
            })
                      .Resolve();
            return(new Uri(_templateBaseUri, url));
#else
            var param = new Dictionary <string, string>
            {
                { "accent", accent.ToString() },
            };
            return(_uwpAccentTemplate.BindByName(_templateBaseUri, param));
#endif
        }