Esempio n. 1
0
        public static async Task <object> GetIconAsync(this IIconService service, string id, double height)
        {
            var icon = await service.GetIconAsync(id).ConfigureAwait(true);

            if (icon is FrameworkElement fe)
            {
                fe.MaxHeight = height;
            }

            return(icon);
        }
Esempio n. 2
0
 public override bool TryGetMember(GetMemberBinder binder, out object result)
 {
     result = _service.GetIconAsync(binder.Name.Replace("_", "/"));
     return(true);
 }