-
- KeldorKatarn
- Posts: 234
- Joined:
Referencing xaml dependencies contained in other assemblies
I'm trying to reference a xaml contained in another assembly in Unity. But I seem to keep getting xaml not found
What is wrong about this?
Full pack URI starting with pack://application:,,,/ doesn't seem to work either
<noesis:Xaml.Dependencies>
<noesis:Dependency Source="/Noesis.NoesisGUI;component/Theme/NoesisTheme.DarkBlue.xaml" />
</noesis:Xaml.Dependencies>
What is wrong about this?
Full pack URI starting with pack://application:,,,/ doesn't seem to work either
<noesis:Xaml.Dependencies>
<noesis:Dependency Source="/Noesis.NoesisGUI;component/Theme/NoesisTheme.DarkBlue.xaml" />
</noesis:Xaml.Dependencies>
Re: Referencing xaml dependencies contained in other assemblies
This should work
Code: Select all
<ResourceDictionary Source="/Packages/com.noesis.noesisgui/Theme/NoesisTheme.DarkBlue.xaml"/>
-
- KeldorKatarn
- Posts: 234
- Joined:
Re: Referencing xaml dependencies contained in other assemblies
That works, thanks :) Is there also a way to reference a package in Unity, if say, unity imports it from GitHub?
Can I say
<ResourceDictionary Source="/Library/PackageCache/com.my.package/Folder/Filename.xaml"/> ?
Can I say
<ResourceDictionary Source="/Library/PackageCache/com.my.package/Folder/Filename.xaml"/> ?
Re: Referencing xaml dependencies contained in other assemblies
I don't think this is possible. Other than using '/Packages/com.noesis.noesisgui/', I am not aware of any alternative methods to reference a package.
Who is online
Users browsing this forum: Google [Bot] and 2 guests