Search found 71 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 8
by samc
27 Feb 2024, 02:54
Forum: General Discussion
Replies: 2
Views: 67

Re: Exception in LocExtension when being used by blend designer

I'm also sometimes seeing an error on line 45:
		DependencyObject dependencyObject = (DependencyObject)provideValueTarget.TargetObject;
the exception being:
System.InvalidCastException: 'Unable to cast object of type 'System.Windows.SharedDp' to type 'System.Windows.DependencyObject'.'
by samc
26 Feb 2024, 23:48
Forum: General Discussion
Replies: 2
Views: 67

Exception in LocExtension when being used by blend designer

I've been tracking down an issue in the blend designer where an exception is being thrown when rendering one of my views. I have a user control that looks like this: public partial class VoiceViewSession : UserControl { public VoiceViewSession() { InitializeComponent(); } private static readonly Dep...
by samc
16 Nov 2023, 19:06
Forum: General Discussion
Replies: 1
Views: 2010

Localization and ChangePropertyAction

I'm trying to change the text of a target using a ChangeProeprtyAction like this: <b:ChangePropertyAction TargetName="Status" PropertyName="Text" Value="{noesis:Loc Text.FrontEnd.AddFriend.Label.InvalidFormat}"/> However, this seems to always make the text into an empty...
by samc
04 Oct 2023, 20:08
Forum: General Discussion
Replies: 3
Views: 733

Re: Errors after upgrading project to vs2022

Adding an image here that shows the error I mentioned above.
image (48).png
thanks,
sam
by samc
04 Oct 2023, 20:07
Forum: General Discussion
Replies: 3
Views: 733

Re: Errors after upgrading project to vs2022

I decided to try this using the ApplicationTutorial code from this repo: https://github.com/Noesis/Tutorials I had to upgrade to 4.8 to be able to open in Blend vs2022, and then I added a style to the App.xaml and then I get this error (very similar to what I'm seeing in my own project). I changed t...
by samc
03 Oct 2023, 19:12
Forum: General Discussion
Replies: 3
Views: 730

Re: localization inside a resource dictionary

The other case where we're using it is in data templates. Here's a snipped example from our project: <DataTemplate x:Key="NetworkGroupEntryTemplate"> <Grid x:Name="Root"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{noesis:Loc Members}" Style="...
by samc
03 Oct 2023, 06:43
Forum: General Discussion
Replies: 3
Views: 733

Errors after upgrading project to vs2022

Hi, I was trying to upgrade our blend project from visual studio 2019 to visual studio 2022. We had to make a single change to the project to get it to load: we changed: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> to: <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> Now that it loads,...
by samc
02 Oct 2023, 19:04
Forum: General Discussion
Replies: 3
Views: 730

localization inside a resource dictionary

Hi, We've been using the localization extension: https://www.noesisengine.com/docs/App.ApplicationLauncher._LocExtension.html And so far it's been working well for us. We did have one question - we haves several resource dictionaries declared in xaml (not user controls) that contain styling informat...
by samc
21 Sep 2023, 19:18
Forum: General Discussion
Replies: 10
Views: 1259

Re: Localization Question using Loc Extension

I think there is no problem on making that property public in the extension as it is only for Blend, so I generated a new Noesis.GUI.Extenssion NuGet (version 3.0.22) with that change.
Could you give it a try?
This totally works! thank you so much!

sam
by samc
20 Sep 2023, 18:30
Forum: General Discussion
Replies: 10
Views: 1259

Re: Localization Question using Loc Extension

We've been looking at our current implementation of the Loc extension and as you noticed there is something we have missing. The extension should be able to detect changes in the localization dictionary, and update the target properties automatically. This mechanism is similar to what DynamicResour...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 8