Search found 178 matches

by nikobarli
16 May 2017, 02:40
Forum: General Discussion
Replies: 4
Views: 1157

Working example for creating UserControl in Native SDK (v2.0.1f1)

I am trying to create a new UserControl following the tutorial here: http://www.noesisengine.com/docs/Gui.Core.UserControlTutorial.html But it seems that the codes no longer compatible with v2.0 of SDK and I couldn't get it right. Could you please post an updated version of the tutorial so that we c...
by nikobarli
13 May 2017, 13:19
Forum: General Discussion
Replies: 12
Views: 3085

Re: Cannot unregister routed event handler (v2.0.1f1, C++)

OK, filed an issue here: https://bugs.noesisengine.com/view.php?id=1081

Looking forward for the feature in the next release !
by nikobarli
12 May 2017, 09:41
Forum: General Discussion
Replies: 12
Views: 3085

Re: Cannot unregister routed event handler (v2.0.1f1, C++)

I see. I think it's better if you provide another API to subscribe to the event because lambda is so much powerful that it will be pain if it is not supported. For example in rxcpp (https://github.com/Reactive-Extensions/RxCpp), a 'subscription' is returned when you subscribe to an observable. Then ...
by nikobarli
12 May 2017, 09:27
Forum: General Discussion
Replies: 2
Views: 1188

Re: How to get a relative position from a MouseEventArgs

Thanks it works. So the "screen" coordinate is the coordinate system related to the Xaml root element. So I just need to call child->PointFromScreen(args.position) to get the position relative to the child element.
by nikobarli
12 May 2017, 07:47
Forum: General Discussion
Replies: 2
Views: 1188

How to get a relative position from a MouseEventArgs

MouseEventArgs has a member 'position' which seems containing the mouse location relative to the root XAML element.
The question is, how can I convert it to a location relative to the element I choose (similar to WPF MouseEventArgs. GetPosition(IInputElement relativeTo) API) ?
by nikobarli
12 May 2017, 02:41
Forum: General Discussion
Replies: 12
Views: 3085

Cannot unregister routed event handler (v2.0.1f1, C++)

Just for testing, I registered a MouseMove event handler to an element, then soon unregistered it as follows. However, it seems that unregistering the handler doesn't work and my handler was still being called by the system. static auto handler = [](BaseComponent* sender, const MouseEventArgs& args)...
by nikobarli
28 Apr 2017, 01:57
Forum: General Discussion
Replies: 2
Views: 1112

Re: Couldn't find SerializationData/UnserializationData (SDK v2.0.1f1)

Hi, thanks for the clarification. Regarding the exception, I have submitted an issue here: https://bugs.noesisengine.com/view.php?id=1070 and attached the necessary files to reproduce it. BTW, It is an unhandled exception: Unhandled exception at 0x00007ff91749da99 in Tutorial05.exe: 0xC0000005: Acce...
by nikobarli
27 Apr 2017, 09:52
Forum: General Discussion
Replies: 2
Views: 1112

Couldn't find SerializationData/UnserializationData (SDK v2.0.1f1)

Hi, Thanks for this great library. I have just downloaded and played a bit with it. I have a problem when following the Data Binding tutorial here: http://www.noesisengine.com/docs/Gui.Core.DataBindingTutorial.html. Trying to compile the code, the compiler couldn't find any definition of Serializati...