"markup extension 'staticresourceextension' requires 'ixamlschemacontextprovider' be implemented in the iserviceprovider for providevalue" Code Answer

5

i'm running into the same issue. some additional information:

at runtime, the iserviceprovider value is of type "ms.internal.xaml.serviceprovidercontext".

in the visual studio xaml designer, the iserviceprovider value is of type "microsoft.expression.designmodel.core.instancebuilderoperations.instancebuilderserviceprovider".

clearly, vs2010 is using classes from expression blend to provide better design-time behavior than vs2008 had - but at a price, because the expression blend classes don't have all the same information that the actual run-time system does.

more info: i tried inserting my own class that implements both iserviceprovider and ixamlschemacontextprovider. some calls get passed to the original iserviceprovider, and i provide a dummy (empty) xamlschemacontext when requested. but i still get the same error.

something inside wpf is encapsulating my iserviceprovider with another iserviceprovider type - but one that fails to implement ixamlschemacontextprovider. i have no further ideas on how to resolve this.

By D_usv on July 14 2022

Answers related to “markup extension 'staticresourceextension' requires 'ixamlschemacontextprovider' be implemented in the iserviceprovider for providevalue”

Only authorized users can answer the Search term. Please sign in first, or register a free account.