User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

[Unity] Solution for DesignTimeResourceDictionary?

22 Oct 2015, 11:28

Hi,

does anyone have a working solution for a DesignTimeResourceDictionary?

I tried two different solutions but one causes constant crashes of Noesis and with it the Unity Editor and the other one doesn't work as various things aren't supported by NoesisGUI yet.

But it would be really great to use some form of DesignTimeResourceDictionary as this would mean I don't have to comment the dictionary in all xamls out before I build the game.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

23 Oct 2015, 15:56

http://social.technet.microsoft.com/wik ... -mode.aspx

Do you mean something like this?

Right now, we don't support extending the ResourceDictionary, but it could be fixed easily. Could you create a ticket for it?

Regarding the crashes, we would like to have them reported. Under no circumstances we should crash, even if a feature is not supported. That is a bug.

Thanks!
 
User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

23 Oct 2015, 17:07

Yep, there are several approaches and all of them (at least the ones I know of) derive from ResourceDictionary and override various methods. I've used this technique in many of my WPF projects and it can really simplify the workflow. And as I'm now very close to the final stage of my current project it would be great if I could use the same technique here. Would it be possible to integrate this into v1.2.5?

I'll create a ticket in the issue tracker.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

24 Oct 2015, 12:59

Thanks for the ticket! 1.2.5 is almost closed, I am not sure if we will be able to solve this in that version. The link I posted above shows a technique that doesn't override any method. That way is very easy for us right now, but if you need real overriding of virtual functions then you will have to wait a bit more because overriding C++ virtual functions from C# is the task we have in Trello with the name "Custom Controls in C#".
 
User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

24 Oct 2015, 13:38

Okay, in this case it doesn't 'override' it but it declares it as 'new', as this method/property was not supposed to be overridden. If this is still not a problem for you, then great. :D I'll take everything that achieves what I want and simplifies my workflow. :)
 
User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

28 Oct 2015, 16:44

I don't want to appear impatient but... do you have any news regarding this? Any working solution would do. I'll probably start redesigning everything in the beginning of next week and it would be super-super-helpful!
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

28 Oct 2015, 17:03

We are polishing a few important details for the v1.2.5 release. But yes, we plan to solve this for that version. Hopefully you will have a preview this week... ; )
 
User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

28 Oct 2015, 17:10

Awww, that would be super-awesome! :D
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

02 Nov 2015, 18:33

Solved in 1.2.5
 
User avatar
Scherub
Topic Author
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

Re: [Unity] Solution for DesignTimeResourceDictionary?

03 Nov 2015, 02:16

Yep, it works! Many thanks again! :)

Who is online

Users browsing this forum: Bing [Bot] and 16 guests