1

If you don't know a priori what XAML resources exist in an assembly, how can you discover what they are? Assuming you have the assembly itself.

Example... another question listed out a set of theme styles that you can use. So for example you can include:

<ResourceDictionary Source="/PresentationFramework.Classic;component/themes/Classic.xaml"/>

to use the 'classic' theme which resides in PresentationFramework.Classic.dll. But how could you discover that this assembly resource even existed in the first place?

I looked in object browser in Visual Studio, but it only shows ordinary classes. I looked at the DLL in ILSpy which shows:

enter image description here

but even from this its not really clear how to know what the usable resource path would be.

I'm not sure where else to look.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
  • 1
    How about [How to get a list of XAML resources defined in an Assembly?](https://stackoverflow.com/q/36639688/1136211) – Clemens Nov 06 '19 at 13:56
  • @Clemens thanks, that's helpful. But I don't necessarily want to have to write code to do this (if possible). I didn't state it but I was hoping there was a simple tool-oriented way to do this. I'm now somewhat surprised that ILSpy didn't actually do what is in that question. – StayOnTarget Nov 06 '19 at 14:04
  • 1
    In case you're looking for a tool, StackOverflow is not the right place to ask. Just saying... – Clemens Nov 06 '19 at 14:26

0 Answers0