Search found 12 matches

  • 1
  • 2
by SL_Rico
22 Dec 2021, 15:56
Forum: General Discussion
Replies: 10
Views: 8943

Re: Control Events not being invoked

We have plans to auto-generate this (#1790).
This is great! Looking forward to it :)
A much better alternative is avoiding events in XAML and just use MVVM.
Yeah, apart from Unity I worked a lot with commands and it seems I should also do so in Unity / Noesis.

Thanks a lot for your support!
Rico
by SL_Rico
22 Dec 2021, 14:11
Forum: General Discussion
Replies: 10
Views: 8943

Re: Control Events not being invoked

Solved this! I missed an important override as described in https://www.noesisengine.com/docs/Gui.Core.EventsTutorial.html#code-behind-subscription So adding the following method override to the code behind class fixes the issue: protected override bool ConnectEvent(object source, string eventName, ...
by SL_Rico
22 Dec 2021, 13:07
Forum: General Discussion
Replies: 10
Views: 8943

Re: Control Events not being invoked

Hey there again! Coming back to the initial question: Is it possible to use the event attributes in XAML to register events at all? I'm working with Unity and the only way to get events to work is to manually register them inside the backend code. Here's a simple, not working example: <UserControl x...
by SL_Rico
08 Dec 2021, 19:28
Forum: General Discussion
Replies: 10
Views: 8943

Re: Control Events not being invoked

No, only at initialization time. Restarting the engine solved the problem to it's maybe not an issue with Noesis but with Unity itself. I'll let you know if I find a way to reproduce the issue :)
by SL_Rico
07 Dec 2021, 03:20
Forum: General Discussion
Replies: 10
Views: 8943

Re: Control Events not being invoked

Hi there and thank you for you answer! This is really weird. I previously had the events registered the exact same way you posted, but it didn't worked at all - while other views in the same scene worked perfectly fine! Now - after several restarts of the engine - it works as intended. In the code I...
by SL_Rico
06 Dec 2021, 10:28
Forum: General Discussion
Replies: 10
Views: 8943

Update: Control Events not being invoked

Update: It seems that no events are registered at all. I additionally created a Button today and added a Click-event handler (first by XAML, then in code behind only) and it does not work at all. XAML <UserControl x:Class="SL.RuadhSagas.UI.Misc.DevConsoleUI" xmlns="http://schemas.micr...
by SL_Rico
04 Dec 2021, 19:21
Forum: General Discussion
Replies: 10
Views: 8943

Control Events not being invoked

Good evening! I tried several ways to listen for KeyDown events for a TextBox control, unfortunately without success. The case is pretty simple: I have a UserControl containing a Grid which contains a TextBox. I want to listen to the KeyDown event. Entering text in the TextBox by typing works as exp...
by SL_Rico
26 Nov 2021, 17:42
Forum: General Discussion
Replies: 1
Views: 2079

Raylib and Noesis

Hello everyone! :) I was trying to integrate Noesis in Raylib (https://www.raylib.com/), a game development library written in C. Raylib uses OpenGL for rendering. There're a lot of bindings for different languages out there. Is it possible to integrate the Noesis Managed SDK with the Raylib C# bind...
by SL_Rico
19 Nov 2021, 17:17
Forum: General Discussion
Replies: 3
Views: 1824

Re: Accessing Children property of TextBlock

Perfect, that solves my issue!
Thank you and have a great weekend :)
by SL_Rico
19 Nov 2021, 16:57
Forum: General Discussion
Replies: 3
Views: 1824

Accessing Children property of TextBlock

Hello everyone :) I'm trying to add Run elements to a TextBlock element using C# but wasn't able to figure out how until now. In XAML a Run element can be added without any problems, so I assume it should be possible in C# as well, right? My XAML code looks like this and I'd like to create the exact...
  • 1
  • 2