samc
Topic Author
Posts: 69
Joined: 21 Aug 2019, 19:22

LocExtension and Preview

14 Sep 2023, 01:07

Hello,

I was following along with these instructions:

https://www.noesisengine.com/docs/Gui.C ... orial.html

I was trying to get the "first" part of Loc Extension working - namely, making a "Language_en-us.xaml" resource dictionary with strings in it, and then using noesis:Loc to lookup those strings.

I have basically copied the example out of the page above, but when I view my TextBlock elements, they don't have any text in them when viewing in the designer in Blend for Visual Studio.

Have I misconfigured something? Or does the extension not work in designer view?

thanks,
sam
 
samc
Topic Author
Posts: 69
Joined: 21 Aug 2019, 19:22

Re: LocExtension and Preview

14 Sep 2023, 01:19

Quick update: I tested this in game, and the loc extension seems to be working there, so I'm wondering if this is just a design time issue.

Is it possible to have the lookups work in design time? If not, are there suggestion for how to work in the Blend designer so you can actually see the text when designing but have it localized in game?

thanks,
sam
 
User avatar
maherne
Site Admin
Posts: 37
Joined: 01 Jul 2022, 10:10

Re: LocExtension and Preview

14 Sep 2023, 20:35

Hi Sam,

LocExtension was not working at design time in Blend, however I have added this functionality and will release an updated Noesis.GUI.Extesions nuget package later today. Our sample projects target the latest minor package version, if you are using your own project you may need to update the package in our Nuget manager.

Once you have this updated package you should see the localized text, based on the current Loc.Source property, in Blend designer.

Thanks,

Mark
 
samc
Topic Author
Posts: 69
Joined: 21 Aug 2019, 19:22

Re: LocExtension and Preview

15 Sep 2023, 00:44

This works amazing! Thank you!

sam
 
User avatar
jsantos
Site Admin
Posts: 3805
Joined: 20 Jan 2012, 17:18
Contact:

Re: LocExtension and Preview

15 Sep 2023, 14:30

This is already available in Noesis.GUI.Extensions 3.0.21
Marking this as solved

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests