public static ImageEx CreateImageEx(string file, EmoticonItem item) { ImageEx ex = new ImageEx(); if (item == null) { ex.Tag = EmoticonItem.CreateImageItem(file, null); } else { ex.Tag = item; } ex.Source = file; ex.HorizontalAlignment = HorizontalAlignment.Left; ex.VerticalAlignment = VerticalAlignment.Top; ex.Stretch = Stretch.None; return(ex); }
internal static ImageEx CreateImageExWithId(string file, string id) { EmoticonItem item = EmoticonItem.CreateImageItem(file, id); return(CreateImageEx(file, item)); }