I am creating a custom control for my Silverlight 2 application. It is in the same SL class project and contains two files:
- Control-derived MyControl class with multiple DepedencyProperties
- themes / generic.xaml, with visual elements (ControlTemplate), states for VSM and transitions
I created the whole xaml manually and it works, but you want to use Blend2 (SP1) for editing! When I open generic.xaml in Blend and switch to the Resources tab, I have nothing to change.
For example, when I put this visual definition of the template and states in App.xaml (my main SL project), I can access all the elements and states through the Resources and States tabs and visually edit them.
Does Blend even support editing support for generic.xaml from a SL2 class project?
What is the best practice for creating custom controls? I donβt want my user control to depend on anything from the main SL2 project, but I want them to be skins and be able to dynamically change skins (themes).
source share