I hope I am at the right place.
PROBLEM: I have created a custom control for WPF. It has a property on it, which is not that simple to set at design time (i.e. it has many values to set). I want to create an Inline helper method for this in the "Properties" screen during design time. I know this
[TypeConverter(typeof(ExpandableObjectConverter))]
is an option (however I have not tested to see if it will work yet), but I would like to make it even simpler (i.e. the Margin property of a control for instance).
BACKGROUND
I have come across http://blogs.msdn.com/b/wpfsldesigner/archive/2010/01/13/wpf-silverlight-design-time-code-sharing-part-i.aspx , http:// us/library/bb907383(v=vs.100). aspx and some other websites which should have solved my problem. I have even downloaded the example of the first website and tested it. For some reason on that test only the SivlerLight version seems to work. None of the examples however seems to work in blend or VS 2013. Was these methods only applicable to 2010 custom controls and lower?
QUESTION
Does 2013 use a different method and where can I find more information on how to create an inline design time property?
Any insight into why this does not seem to work and / or a possible solution to the problem will be helpful.
Also what is the best practice with regard to creating custom controls like this?
Thank you