Hello,
2 Developers team.
Thank you guys, your Silverlight 2.0 controlkit is the best I tryied.
But some problems exist, anyway.
I try to use listbox in the following way:
Page.xaml
<Canvas x:Name="parentCanvas"
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="Page_Loaded"
x:Class="ControlExplorer.Page;assembly=ClientBin/ControlExplorer.dll"
Width="640"
Height="480"
Background="White"
>
<Rectangle x:Name="recControl" Width="190" Height="205"
Fill="#FFEEEEEE" Stroke="#FF5A70FF" Canvas.Left="59"
Canvas.Top="54" RadiusY="6.5" RadiusX="6.5" StrokeThickness="3" />
</Canvas>
Page.xaml.cs
public partial class Page : Canvas
{
public void Page_Loaded(object o, EventArgs e)
{
// Required to initialize variables
InitializeComponent();
ListBox list = new ListBox();
list.ReplacePlaceHolder(this.recControl, true);
for (int i = 0; i < 15; i++)
{
list.Items.Add(string.Format("{0}{0}{0}", i));
}
}
}
The listbox is rendered on the page, but its items are epmty, without any text.
Please find how it looks like in the attached image