문제

I'm trying to integrate some open source directly into my own program because I need to track down a completely unrelated bug which, without actually importing the code, I can't seem to trace back to the source.

So, I imported this code into my own program:

This is the code that works in the open source:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Sparrow.Chart">
    <local:BorderThicknessToLeftAndRightConverter x:Key="borderThicknessConverterXAxis"/>
    <local:BorderThicknessToTopBottomConverter x:Key="borderthicknessConverterYAxis"/>

The identical code fails to work in my program after the import. The namespaces being referenced by the clr-namespace line are identical, except my code throws all kinds of errors, saying that "BorderThicknessToTopBottomConverter (and pretty much every other item referenced by "local:" cannot be found within the referenced namespace.

도움이 되었습니까?

해결책

I sometimes encounter identical situation. What I usually do is comment all items (in your case all items referenced by the "local" namespace), rebuild the solution, uncomment all items and rebuild again. It might help you.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top