Whats the right way to handle noesis:Xaml.Dependencies
Posted: 10 Oct 2026, 22:29
I'm recently upgraded to 4.0 and have moved all my UserControls (200+) to have the AssetDependency attribute and can get everything working.
In our project we do a ton of dynamic loading, models determining what controls get shown, template selectors etc. This all means that there are not direct dependencies in the XAML for them. I've made things work with noesis:Xaml.Dependencies declaring the things that are loading dynamically.
Our project is roughly 3 top level window XAML's that are chosen based on the mode the game is in. At the moment I have many noesis:Xaml.Dependencies in each one based on all the dynamically loaded things, lots of duplication between them, I wish there was a way to not have all the duplication of them, maintaining it sux.
What's the right way to do that?
Should I have one xaml that has all the dependencies that are ever dynamically loaded in it and reference that from top level window xaml's?
Should I put noesis:Xaml.Dependencies in many user controls that have dynamic things they load?
Is there any way that doesn't involve putting these noesis:Xaml.Dependencies in many places?
Is there any better way for a large project I'm not thinking of?
In our project we do a ton of dynamic loading, models determining what controls get shown, template selectors etc. This all means that there are not direct dependencies in the XAML for them. I've made things work with noesis:Xaml.Dependencies declaring the things that are loading dynamically.
Our project is roughly 3 top level window XAML's that are chosen based on the mode the game is in. At the moment I have many noesis:Xaml.Dependencies in each one based on all the dynamically loaded things, lots of duplication between them, I wish there was a way to not have all the duplication of them, maintaining it sux.
What's the right way to do that?
Should I have one xaml that has all the dependencies that are ever dynamically loaded in it and reference that from top level window xaml's?
Should I put noesis:Xaml.Dependencies in many user controls that have dynamic things they load?
Is there any way that doesn't involve putting these noesis:Xaml.Dependencies in many places?
Is there any better way for a large project I'm not thinking of?