public static UGC_SelectorView SV_Update(UGC currentUgc, string modPath) { UGC_SelectorView usv = new UGC_SelectorView(currentUgc, modPath); var bi = new BitmapImage(); bi.BeginInit(); bi.UriSource = new Uri(currentUgc.Preview); bi.DecodePixelHeight = 180; bi.CacheOption = BitmapCacheOption.OnLoad; bi.EndInit(); usv.iconImage.Source = bi; return(usv); }
public static UGC_SelectorView SV_Create(string modPath) { UGC_SelectorView usv = new UGC_SelectorView(modPath); return(usv); }