I need to be able to set a property of type System.Type in UserControl. Im currently doing this:
XAML:
<MyUserControl x:Name="TheControl"/>
Code behind:
TheControl.TheType = typeof(My.NameSpace.MyType);
I would like to do this (XAML only):
<MyUserControl x:Name="TheControl" TheType="??"/>
Is there any way to use typeofinside XAML?
source
share