I need to add some custom images to the ribbon, and I am wondering what is the best practice method for doing this.
Here's what I have right now, which is obviously not right. What would be a more elegant approach?
var templateNameImageBytes = Convert.FromBase64String(@
"iVBORw0KGgoAAAAN......"
);
//truncated
var templateNameStream =
new
MemoryStream(templateNameImageBytes);
var lblTempalteName =
new
RadLabelElement()
{
Text =
"Template Name:"
,
AutoSize =
false
,
Size =
new
Size(120, 20),
Image = Image.FromStream(templateNameStream),
TextImageRelation = TextImageRelation.ImageBeforeText
};