KeldorKatarn
Topic Author
Posts: 234
Joined: 30 May 2014, 10:26

Referencing xaml dependencies contained in other assemblies

15 Jan 2025, 23:51

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>
 
User avatar
jsantos
Site Admin
Posts: 4215
Joined: 20 Jan 2012, 17:18
Contact:

Re: Referencing xaml dependencies contained in other assemblies

16 Jan 2025, 10:53

This should work
<ResourceDictionary Source="/Packages/com.noesis.noesisgui/Theme/NoesisTheme.DarkBlue.xaml"/>
 
KeldorKatarn
Topic Author
Posts: 234
Joined: 30 May 2014, 10:26

Re: Referencing xaml dependencies contained in other assemblies

16 Jan 2025, 16:32

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"/> ?
 
User avatar
jsantos
Site Admin
Posts: 4215
Joined: 20 Jan 2012, 17:18
Contact:

Re: Referencing xaml dependencies contained in other assemblies

20 Jan 2025, 12:52

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