This is a migrated thread and some comments may be shown as answers.

binding htmlplaceholder to a string

1 Answer 96 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 10 Oct 2010, 04:50 PM
I am trying to do something that should be pretty simple, but alas, I am confused.

I am creating a list of absolute links
List<Link> links = new List<Link>();
   links.Add(new Link("Axis", "http://www.axis.com/solutions/index.htm"));
public class Link
{
    public string name;
    public string url;
    public Link(string name, string url)
    {
        this.name = name;
        this.url = url;
    }
}

Based on the parameter LinkName which is passed into the control I need to bind the appropriate link to the RadHtmlPlaceholder
What code would you add to the code behind, how would you setup the xaml to bind the SourceURL to the matching url.
Eventually I will grab this information from a table, but for now, I am going to use the static list to test the RadHtmlPlaceholder and to provide designtime data.

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 10 Oct 2010, 05:19 PM
forget about it, decided not to use htmlplaceholder, don't want to put silverlight in Windowless mode.
Tags
HTMLPlaceHolder
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or