문제

I am using an opensource wpf TreeListView control. The control is a library project with a themes folder in it containing some xaml theme files. In my wpf project, I have got a reference to the control dll and I would like to know how to reference the dll themes in app.xaml. I tried doing something like this but it throws exception saying can't find the treelistview assembly

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>           
            <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" />
            <ResourceDictionary Source="/TreeListView;component/themes/Aero.NormalColor.xaml" />
    </ResourceDictionary>
</Application.Resources>

At the moment I have to copy all the theme files in my wpf project locally to make it work like this.

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>               
            <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" />
         <ResourceDictionary Source="themes/aero.normalcolor.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Is there a way to reference theme files directly in the TreeListView dll like referencing default themes.

Awaiting Nabeel

도움이 되었습니까?

해결책

I figure it out myself, I was using the wrong assembly file name.

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