I've got a XAML issue, in a project where working on vs2010 we use our own CustomBinding
when using DynamicResource
in my XAML the Designer throws me the following expception :
CustomBinding is not valid for Setter.Value. The only supported MarkupExtension types are DynamicResourceExtension and BindingBase or derived types.
even though it's not in use in that particular extension.
<SomeControl Value="{CustomBinding SomeValue} Style="{DynamicResource SomeStyle}"/>
Style="{DynamicResource SomeStyle}"
is the part which throws the design time exception and the style is never set as a result.
If any one came across a similar issue, please advise.
CustomBinding
deriving fromBinding
class? – ButtonsValue="...
) isn't missing in your actual source control? If so, what's the definition ofCustomBinding
? If, as you say, it derives fromMarkupExtension
then your answer should be obvious: you have to derive fromDynamicResourceExtension
orBindingBase
instead, as the error message suggests. – Epimorphosis