Search found 2262 matches

by sfernandez
Yesterday, 19:48
Forum: General Discussion
Replies: 5
Views: 145

Re: Key_GamepadAccept requires longer key press?

If a Button has the focus, pressing the Gamepad_Accept will always fire the Click event on that button (without any GamepadTrigger), it will be the same as clicking the focused button. I think what you are trying to do is if no Button has the focus and user presses the Gamepad_Accept, fire the Comma...
by sfernandez
Yesterday, 18:49
Forum: General Discussion
Replies: 3
Views: 61

Re: Memory leak when binding commands

Ok, that makes more sense to me. Great to know you solved it.
by sfernandez
Yesterday, 09:59
Forum: General Discussion
Replies: 3
Views: 61

Re: Memory leak when binding commands

Hi, I don't see a cyclic reference here because you are not storing a reference to any parent element, just to the command object stored in the viewmodel. That shouldn't produce a memory leak.

Which objects are not correctly released in this scenario for you?
by sfernandez
03 Aug 2021, 21:25
Forum: General Discussion
Replies: 5
Views: 145

Re: Key_GamepadAccept requires longer key press?

Oh, didn't notice the Focusable=False on the Button. So if that button is not focused, what control has focus? another button?
by sfernandez
03 Aug 2021, 19:41
Forum: General Discussion
Replies: 5
Views: 145

Re: Key_GamepadAccept requires longer key press?

This is happening because the Button logic is handling the KeyDown event for the Gamepad_Accept (as it will happen if pressing the Space key) to initiate the button press. On the KeyUp (for the default ClickMode=Release) it will fire the Click event. But if you don't release the Gamepad_Accept (or S...
by sfernandez
02 Aug 2021, 13:37
Forum: General Discussion
Replies: 1
Views: 2443

Re: Access violation in second Noesis.GUI.Init() call

Hello, which version are you using? I recommend you upgrade to the latest version in our downloads page. Why do you need to shut down Noesis and initialize it again? Our library is designed to be initialized once at start of the application and shut down when exiting. In fact, calling Init() after S...
by sfernandez
02 Aug 2021, 13:15
Forum: General Discussion
Replies: 1
Views: 2510

Re: Remove Scrollbar / Scrollviewer animation

Hi, the ScrollBar style defined by our theme can be found here: https://github.com/Noesis/Managed/blob/master/Src/NoesisApp/Theme/Theme/NoesisTheme.Styles.xaml#L849-L971 You can create a local style for the ScrollBar in your application removing those animations and showing the buttons and bar by de...
by sfernandez
24 Jul 2021, 01:33
Forum: General Discussion
Replies: 2
Views: 3319

Re: How to register attached property of complex type?

For ref counted objects (inheriting from BaseComponent) we are storing the dependency property using a Ptr and the definition should look like this: data->RegisterProperty<Ptr<TreeViewItem>>(SelectedItemsStartProperty, "SelectedItemsStart", FrameworkPropertyMetadata::Create<Ptr<TreeViewItem>>(nullpt...
by sfernandez
23 Jul 2021, 18:44
Forum: General Discussion
Replies: 4
Views: 4556

Re: Binding to a UserControl's property which is bound to VM

TextBox's Text property is defined to bind TwoWay by default: data->RegisterProperty<String>(TextProperty, "Text", FrameworkPropertyMetadata::Create(String(), FrameworkPropertyMetadataOptions_BindsTwoWayByDefault, UpdateSourceTrigger_LostFocus)); You can define your UserControl's Text property the s...
by sfernandez
23 Jul 2021, 18:18
Forum: General Discussion
Replies: 2
Views: 3471

Re: UIElement::IsVisibleProperty defaults to true

This is a bug, I just checked with WPF and the default value for that property is false.
Could you please report it in our bugtracker?