Hai am creating a usercontol with two textblock and one listbox. i can able to pass data to textblock in my usercontorl. but i cannot pass the data to my listbox in usercontrol. how to pass my data in the usercontrol
public partial class UserControl1 : UserControl
{
public UserControl1()
{
InitializeComponent();
}
public string TeamName
{
get { return textBlock1.Text; }
set { textBlock1.Text = value; }
}
public ObservableCollection<CssRpt> CssDataList
{
get { return listBox1.ItemsSource; }
set { listBox1.ItemsSource = value; }
}
}