Hi,
I am designing a listbox and I want to have design time data in it.
If have a class in my namespace, how do I instantiate and object of that class in the Resources of the user control XAML please?
Malcolm
Hi,
I am designing a listbox and I want to have design time data in it.
If have a class in my namespace, how do I instantiate and object of that class in the Resources of the user control XAML please?
Malcolm
<UserControl.Resources>
<my:CustomObject xmlns:my="clr-namespace:MyNamespace"
x:Key="MyCustomObj"
Property="Value"
/>
</UserControl.Resources>