Search found 17 matches

  • 1
  • 2
by christyjquinn
19 Apr 2023, 19:41
Forum: General Discussion
Replies: 8
Views: 3999

Re: Extending GamepadTrigger::OnButtonPress to conditionally handle events

Thanks that makes sense. The actual use case we have is the same as what is in the documentation being calling a close command in response to "Cancel". In this case handled should be set to true to avoid any further bubbling, is your suggestion to do something like above by extending Gamep...
by christyjquinn
18 Apr 2023, 01:52
Forum: General Discussion
Replies: 8
Views: 3999

Re: Extending GamepadTrigger::OnButtonPress to conditionally handle events

Sorry to comment on a solved thread but I'm wanting to do a similar thing and just wondered what the background was for GamepadTrigger and KeyTrigger not setting handled to true by default?
by christyjquinn
29 Mar 2023, 19:02
Forum: General Discussion
Replies: 4
Views: 492

Re: Commands and being stack allocated in view models

Awesome thanks both, I suppose if we aren't having performance issues there is no harm allocating on the heap by default.
by christyjquinn
27 Mar 2023, 20:24
Forum: General Discussion
Replies: 4
Views: 492

Re: Commands and being stack allocated in view models

A little more context for why I am asking this. I'm sometimes hitting a crash where a stack allocated command is decremented after being released. The command is stack allocated in a view model and bound to a button and game pad trigger as follows: <b:Interaction.Triggers> <noesis:GamepadTrigger Fir...
by christyjquinn
27 Mar 2023, 19:45
Forum: General Discussion
Replies: 4
Views: 492

Commands and being stack allocated in view models

Hello, In the commands tutorial there is a note about stack allocating commands: In this sample DelegateCommand is not allocated in the heap to reduce allocations as explained in the C++ Architecture Guide. This is one of those scenarios where it is safe to do so and reference counting is not needed...
by christyjquinn
25 Oct 2022, 19:55
Forum: General Discussion
Replies: 9
Views: 1545

Re: Assertion when using TemplateBinding

Just a quick update, I've identified the problematic TemplateBinding and replaced it with the above fix. So all good there!
by christyjquinn
24 Oct 2022, 19:16
Forum: General Discussion
Replies: 9
Views: 1545

Re: Assertion when using TemplateBinding

Ahh interesting, I think we must be still using an older version of Noesis that doesn't have this change. But to elaborate a bit more, I'm essentially having trouble identifying the problematic TempalteBinding when the assert throws.
by christyjquinn
22 Oct 2022, 02:04
Forum: General Discussion
Replies: 9
Views: 1545

Re: Assertion when using TemplateBinding

Sorry to open back up quite an old thread but I am encountering this issue at the moment. The problem is I'm having a hard time identifying the exact TemplateBinding that is causing the issue. Any tips to debug this further?
  • 1
  • 2