Search found 11 matches

  • 1
  • 2
by DavidG
07 Sep 2023, 20:21
Forum: General Discussion
Replies: 6
Views: 6525

Re: Updating a bound object with INotifyPropertyChanged does not work

Ok,
thank you. In this case I will need to rework my UserControl.
At least I know why it's not working now :D
by DavidG
06 Sep 2023, 13:29
Forum: General Discussion
Replies: 6
Views: 6525

Re: Updating a bound object with INotifyPropertyChanged does not work

Hi, thanks for the quick reply. I know that I can bind properties like this as well. <TextBlock Text="{Binding PlayerData.Name, ElementName=MilestoneView}"/> In my case I don't want to do this as I would need to create about 30 Dependency properties if I want to do it this way. That's a bi...
by DavidG
06 Sep 2023, 12:24
Forum: General Discussion
Replies: 6
Views: 6525

Updating a bound object with INotifyPropertyChanged does not work

Hi, I'm having trouble when updating the UI that is bound to an scriptable object. I simplified my example extremely, so it can be understood easier. I hope that I managed to catch the essence of it. I have a UserControl called "MilestoneViewComponent". It expects an object of my PlayerDat...
by DavidG
01 Jun 2023, 15:24
Forum: General Discussion
Replies: 3
Views: 1958

Re: Binding not working when using custom controls?

Hi, So referring to the picture in the post: The buttons A and C control the TextBlock Value of B . The buttons D and F control the Textbox Value of E . Both Values are tight to the same variable in IntTextBoxViewScript . Therefore I was expecting that if one of the values changes, the other one sho...
by DavidG
01 Jun 2023, 10:44
Forum: General Discussion
Replies: 3
Views: 1958

Binding not working when using custom controls?

Hi, so I'm having a trouble when it comes to bindings. As I'm using three different XAMLs, I will try to make it as understandable and brief as possible. The structure looks like this: MainView.xaml -- presents--> IntBoxTemplate.xaml -- presents--> IntTextBox.xaml Here is how it looks visually. The ...
by DavidG
30 May 2023, 17:59
Forum: General Discussion
Replies: 3
Views: 6177

Re: Binding Variables in Style Resources

Hi,
sorry for the late reply, but I finally got it working without any errors.
I still don't understand fully how it works, but at least I can use it to its full potential.
Thanks

Regards,
David
by DavidG
23 Jan 2023, 18:53
Forum: General Discussion
Replies: 3
Views: 6177

Binding Variables in Style Resources

Hi, so I found this amazing code snippet which hides the Border by default and only if my SelectedArticle variable is ARTICLE_A it becomes visible . The problem is that I have to repeat it in every single Border I want to use this functionality. I would love to put this into my Resources and set the...
by DavidG
19 Jan 2023, 07:53
Forum: General Discussion
Replies: 3
Views: 3291

Re: Adding sound to buttons with a ResourceDictionary

Hi,
thanks it worked.
In my example one EventTrigger was missing the b: prefix, which I edited in. With that it works fine :D
by DavidG
18 Jan 2023, 11:23
Forum: General Discussion
Replies: 3
Views: 3291

Adding sound to buttons with a ResourceDictionary

Hi, so I've recently learned about ResourceDictionary 's. I've taken a button from a Noesis Example which plays a sound if you hover over them. I want all my buttons to make this sound on hover, so I want to use a ResourceDictionary to do it. I've tried multiple things, but I'm still getting error m...
by DavidG
13 Jan 2023, 19:05
Forum: General Discussion
Replies: 3
Views: 4327

Re: Dynamically bind button commands in Data Template Items

Thanks that was it.
I didn't know that I could just create a new NoesisEventCommand().
I thought that this has to be created and linked by Noesis (yes I'm new to Noesis).
That helped me so much :D
  • 1
  • 2