Search found 2109 matches

by sfernandez
14 Apr 2021, 19:55
Forum: General Discussion
Replies: 1
Views: 18

Re: SubMenus in C++

What control do you need, a ContextMenu with sub menu options, or a TabControl with tabs? My recommendation is you use a MVVM approach with data binding and data templates. In the case of MenuItems you will need to use HierarchicalDataTemplates so you can have any number of sub levels depending on t...
by sfernandez
14 Apr 2021, 19:44
Forum: General Discussion
Replies: 4
Views: 31

Re: project setup question

Hi Sam, that setup seems fine to me. Just one question, as you have two NoesisView components, how do you handle the input? Are you enabling/disabling the keyboard/mouse on the corresponding view component? Regarding the App.xaml, it is not used in Unity. That xaml is only necessary for Blend, so yo...
by sfernandez
14 Apr 2021, 15:07
Forum: General Discussion
Replies: 12
Views: 5714

Re: The calling thread cannot access this object because a different thread owns it.

Is that it is not yet supported in C++ SDK 3.0.11? I don't see the Invoke() in NoesisSDK/Include/NsGui/DispatcherObject.h Dispatcher won't be implemented in the C++ SDK, our core library doesn't create or manages threads, that is something that should be done by the user. Regarding the crash, I'm n...
by sfernandez
14 Apr 2021, 14:11
Forum: General Discussion
Replies: 2
Views: 21

Re: SetFocusAction TargetName only works when inside the target

What is happening is that the IsVisibleChanged event is raised in the parent StackPanel before updating the visibility of the child Button, so when the SetFocusAction tries to set the focus on the Button it fails because it is still not focusable (not visible). When moving the trigger to the Button,...
by sfernandez
14 Apr 2021, 11:44
Forum: General Discussion
Replies: 4
Views: 32

Re: Setting IsFocused without setting IsFocusEngaged

Ok, thanks for the feedback, we already created that extension for the next release.
by sfernandez
14 Apr 2021, 11:42
Forum: General Discussion
Replies: 5
Views: 367

Re: DataBinding in Unreal

Hi Huskinu, I wonder why don't you make it available at NoesisSDK/Include, so a client UE project/plugin could utilize it? NotifyPropertyChangedBase is not part of our core library, we offer it with source code as part of our application framework so users can include it their projects or use it as ...
by sfernandez
14 Apr 2021, 11:15
Forum: General Discussion
Replies: 2
Views: 20

Re: How to properly use Gesture events like DoubleTapped in Unity?

Hi Jamieh, you missed the type where the event is defined:
<ScrollViewer noesis:Element.DoubleTapped="OnDoubleTapped"/>
That should work, I just verified it.
by sfernandez
14 Apr 2021, 11:05
Forum: General Discussion
Replies: 6
Views: 37

Re: DataTemplate creation in code

Great, we will love to see that framework up and running with Noesis :)
by sfernandez
14 Apr 2021, 10:59
Forum: General Discussion
Replies: 4
Views: 31

Re: project setup question

Hi Sam, We recommend using a single Blend project with all your game UI, and organize the files in as many folders as you need. Then you can change which xaml you want to show in Blend by modifying the StartupUri in the App.xaml. Some customers created a more complex "MainWindow" in Blend that allow...
by sfernandez
14 Apr 2021, 10:36
Forum: General Discussion
Replies: 3
Views: 526

Re: BindingExpressionBase

In Noesis 3 the Binding expects an object implementing the IProvideValueTarget interface. Something like this: public struct ProvideValueTarget : IServiceProvider, IProvideValueTarget { public object TargetObject { get; set; } public object TargetProperty { get; set; } object IServiceProvider.GetSer...