Click here to Skip to main content
15,911,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,
I am using a special library at project and I should write a custom control of this library to be used at project. I haven't written any custom control in silverlight. Especially I have no idea about writing control of a different library in silverlight.
Posted

1 solution

Google is your friend: Silverlight Custom Control tutorial[^] returns 577,000 results.
Go forth and use the google to find tutorials that will guide you on your way. Cheers.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Mar-12 15:22pm    
Yes, right some way to start, a 5.
--SA
no_-_namee 21-Mar-12 5:07am    
Yes , you are right. Google results lots of links about it. I have made a research about that before asking the question. After research, I have tried the way of this link: http://www.kunal-chowdhury.com/2011/04/how-to-create-custom-control-in.html[^]

But It does not let us to define the template of a different library.
<pre lang="HTML"> <Style TargetType="local:myLibraryControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:myLibraryControl">

</ControlTemplate>
</Setter.Value>
</Setter>
</Style></pre>
I can not declare my template between Control Template tags. It gives me the error which says:
<pre lang="text">The property visual tree does not support values of type.</pre>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900