My custom control has the following basic structure:
public class NewTextBox : TextBox
{
public ItemCollection Items { get; set; }
}
And in XAML I have:
<ListBox Name="listBox1" />
<my:NewTextBox Items="{Binding Path=listBox1.Items}" />
The bind doesn't work in this case. Is the property Items
wrong?