NLabelElement with Html


Author
Message
Den Zavor
Den Zavor
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 2, Visits: 14
Hi all,
I'm using NGalleryItem with the NLabelElement. These controls are great, but I'm stick with the showing html in the Text attribute of the NLabelElement.
This control shows the html text like "<b>Name</b><br/>Id" very well, but if I try to set the value of the attribute to "<p id={1} path=\"{2}\"><b>Name: {0}</b><br />Polarity: {3}</p>" the control shows this plain text on the form rather than rendered html.
I'm using the control like this:
var item = new NGalleryItem();
item.Label.Text = string.Format("<p id={1} path=\"{2}\"><b>Name: {0}</b><br />Polarity: {3}</p>",
    Name,   // name
      Id,   // dictionary item id
      FilePath,   // rda-file path
      Polarity);

could anyone help me?
what am I doing wrong?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search