Is there a way to insert Silverlight XAML into my page using ASP.NET code-behind?

后端 未结 4 1852
眼角桃花
眼角桃花 2021-01-03 19:08

So, I want to create some Silverlight charts from some data on my ASP.NET web page. The way to do this, either using Visifire (my current thing) or the upcoming Silverlight

4条回答
  •  盖世英雄少女心
    2021-01-03 19:29

    I could be wrong - coming at this question as a WPF developer rather than a SilverLight developer, but in WPF you can create and insert controls into the XAML in code.

    Label myLabel = new Label(); // Create a new control
    myLabel.Text = "Hello Wirral"; // Change some of its properties
    MyContainingPanel.Children.Add(myLabel); // Add it to an existing container
    

提交回复
热议问题