Search found 1970 matches

by sfernandez
19 Nov 2020, 10:27
Forum: General Discussion
Replies: 2
Views: 24

Re: Change State

First you need to register the enum in the reflection and the converter in the factory (so you can use the enum values in xaml): // Header file NS_DECLARE_REFLECTION_ENUM(YourNamespace::State) // Cpp file NS_IMPLEMENT_REFLECTION_ENUM(YourNamespace::State, "YourNamespace.State") { NsVal("Principal", ...
by sfernandez
18 Nov 2020, 10:14
Forum: General Discussion
Replies: 4
Views: 481

Re: KeyTrigger does not work

Great, thanks for the update.
by sfernandez
17 Nov 2020, 22:07
Forum: General Discussion
Replies: 2
Views: 20

Re: How to stop button mid press?

If you want to drag the panel then you need to capture the mouse (so you still receive move events when mouse is outside the canvas), and if you do so then the Button will automatically be released and click aborted.

Have you tried that?
by sfernandez
17 Nov 2020, 11:47
Forum: General Discussion
Replies: 1
Views: 22

Re: A few questions about working with Noesis and Unity

For example, take the "NorthGame" example, would it be possible to create a menu that complex where the user could interact with it using a gamepad and not have to create a Monobehaviour class to do so or does all interaction within Unity need the ViewModels to be a Monobehaviour? ViewModels don't ...
by sfernandez
17 Nov 2020, 11:30
Forum: General Discussion
Replies: 4
Views: 481

Re: KeyTrigger does not work

I see you have marked the post as solved, did you finally make it work?
by sfernandez
17 Nov 2020, 11:29
Forum: General Discussion
Replies: 4
Views: 1211

Re: Issue With Custom views in NoesisGUI

I tried to reproduce the "Unexpected empty xaml" error without luck. What I get when importing those files is a compiler error because of the unknown Window class: Assets\MainWindow.xaml.cs(15,39): error CS0246: The type or namespace name 'Window' could not be found (are you missing a using directiv...
by sfernandez
15 Nov 2020, 13:02
Forum: General Discussion
Replies: 4
Views: 481

Re: KeyTrigger does not work

For a KeyTrigger to work (and the same happens for KeyBindings) the KeyDown routed event should be raised by some element inside the control defining the trigger or the control itself. This means that the keyboard focus should be set to any element inside the control or the control itself. https://d...
by sfernandez
13 Nov 2020, 19:31
Forum: General Discussion
Replies: 4
Views: 1211

Re: Issue With Custom views in NoesisGUI

Hi, sorry for the inconvenience, I'm gonna need some information to determine what could be happening. Did you have a way to always reproduce this situation? Which steps did you follow to import the files? Copied them all at once, or first the xaml and then the cs, or viceversa? After importing the ...
by sfernandez
11 Nov 2020, 12:03
Forum: General Discussion
Replies: 15
Views: 1958

Re: Pause menu gamepad input suddenly stops working

Anyway, regarding the source of the problem, the cause is we are considering Gamepad_Accept as if Space key was pressed in Button code. And [Alt+Space] key combination was reserved to show system menu in WPF, but gamepad should not follow that path. We are going to fix it for the next release, here ...
by sfernandez
11 Nov 2020, 11:30
Forum: General Discussion
Replies: 15
Views: 1958

Re: Pause menu gamepad input suddenly stops working

Regarding the AcceptsReturn property, I am unsure how to check that. I am using NocturnalStyle.xaml which IIRC comes with Noesis and I am not knowingly setting the property myself. A quick googling suggested this is a property of the TextBox, not the Button, but I may be wrong. I just checked that ...