I’d like to know how I can assign in XAML a dependency property of type Type in Silverlight since the markup extension {x:Type} does not exist ?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on your requirement there may be a range of different approaches to take. The following is very general solution.
Create a value converter which converts a string to a Type:-
Place an instance of this converter in resource dictionary of which destination object has visibility, say the App.xaml:-
Now in your Xaml you can assign a value to a property like this:-