Search found 2702 matches

by sfernandez
05 Jan 2023, 14:14
Forum: General Discussion
Replies: 3
Views: 93

Re: Is it possible to completely disable the tab button from changing focused control?

You can hook to PreviewKeyDown event and set e.handled to true for the Tab key, that way keyboard navigation will ignore it and focus won't be affected.
Could you try that?
by sfernandez
05 Jan 2023, 14:06
Forum: General Discussion
Replies: 3
Views: 98

Re: ScrollViewer setting offset

I think this is related to viewtopic.php?t=2810#p15126.
Please let us know if the suggestions there are working.
by sfernandez
05 Jan 2023, 14:04
Forum: General Discussion
Replies: 9
Views: 254

Re: ScrollViewer Custom Manipulation issues

If you are inheriting from ScrollViewer you can start by checking if IsManipulationEnabled is set to true (default ScrollViewer implementation sets it to true if PanningMode is not 'None'). This is necessary to receive manipulation events. Then override OnManipulationStarting, set e.handled to true ...
by sfernandez
27 Dec 2022, 12:24
Forum: General Discussion
Replies: 4
Views: 158

Re: TypeArguments for generic UserControl

There are no plans to support x:TypeArguments, but I think it won't be necessary. If you plan to have a different xaml for each implementation of your generic class, then you just specify that concrete class in the xaml: class GenericControl<T> : UserControl { ... } class Test1Control : GenericContr...
by sfernandez
27 Dec 2022, 12:09
Forum: General Discussion
Replies: 4
Views: 126

Re: Is possible do C++: public override UIElement Child

Hi, the Decorator provides a virtual method for Child property changes, so you can override it to register/unregister any event handlers you want on the child: void ZoomBorder::OnChildChanged(UIElement* oldChild, UIElement* newChild) override { if (oldChild != nullptr) { // unregister events... } if...
by sfernandez
19 Dec 2022, 10:45
Forum: General Discussion
Replies: 10
Views: 175

Re: Is it valid to call GUI::SetApplicationResources with a NULL pointer?

Could you just call SetApplicationResources with the new set of resources? Noesis::GUI::SetApplicationResources(main_resources); ... Noesis::GUI::SetApplicationResources(loader_resources); ... Noesis::GUI::SetApplicationResources(main_resources); Calling SetApplicationResources with null has extra m...
by sfernandez
16 Dec 2022, 19:03
Forum: General Discussion
Replies: 10
Views: 175

Re: Is it valid to call GUI::SetApplicationResources with a NULL pointer?

Hi Ankor, are you planning on calling SetApplicationResource(nullptr) in the middle of your application, or are you talking about the Noesis Shutdown, where we set it to null to release all the memory?
by sfernandez
16 Dec 2022, 18:34
Forum: General Discussion
Replies: 4
Views: 111

Re: implement a custom TickBar

Thanks for the report!
by sfernandez
16 Dec 2022, 18:33
Forum: General Discussion
Replies: 3
Views: 112

Re: Detroit Sample: how do I reset ViewModels on state change? Where should C++ VMs come from?

It looks fine to me. The general idea when using MVVM is that you can have a hierarchy of ViewModels that you can manage, and then assign them to the different parts of your UI. So a specific component only interacts with its own ViewModel, while a parent view model can decide if it needs to recreat...
by sfernandez
16 Dec 2022, 18:24
Forum: General Discussion
Replies: 3
Views: 107

Re: DependencyProperty.AddOwner registers multiple callbacks for single type

Thanks for the report.

For crashes it is better to open a ticket in the bugtracker with a crash dump if possible, and reproduction steps.
But if you're unsure if something that is happening to you is a missing feature, usage error or something wrong in Noesis, don't hesitate to ask in the forums.