Search found 74 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 8
by samc
03 Apr 2024, 19:14
Forum: General Discussion
Replies: 5
Views: 106

Re: localization change from data trigger

We can certainly try that. I think we were avoiding that option because it gets unwieldy if you have more than just a couple options, and it's also harder to maintain with each new option you add.

thanks,
sam
by samc
29 Mar 2024, 00:38
Forum: General Discussion
Replies: 5
Views: 106

Re: localization change from data trigger

Wanted to note we also tried this with a storyboard kind of like this, which also didn't seem to work: <StringAnimationUsingKeyFrames Storyboard.TargetName="Status" Storyboard.TargetProperty="(TextBlock.Text)"> <DiscreteStringKeyFrame KeyTime="00:00:00" Value="{noe...
by samc
29 Mar 2024, 00:32
Forum: General Discussion
Replies: 5
Views: 106

localization change from data trigger

Hi there, We're doing something maybe not very standard. We had a generic "OK" dialog that we use to display error messages. This dialog can display any number of error messages, and in some cases it changes options (instead of just "OK" it might have "retry" or "c...
by samc
27 Feb 2024, 02:54
Forum: General Discussion
Replies: 2
Views: 78

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: 78

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: 3
Views: 2079

Localization and ChangePropertyAction

I'm trying to change the text of a target using a ChangePropertyAction 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: 752

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: 752

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: 743

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: 752

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,...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 8