Search found 50 matches
- 17 Apr 2015, 02:38
- Forum: General Discussion
- Replies: 11
- Views: 3318
Re: Get element name in event handler
Curious as to why I don't see BaseComponent in the class list? That's what we have in the sender parameter of events.
- 17 Apr 2015, 02:06
- Forum: General Discussion
- Replies: 3
- Views: 1624
Re: Get event by name
Thanks. While you are at it you may want to change this too in event handlers.
NsSymbol eventName = e.routedEvent->GetName();
Otherwise we have to do:
string eventName = NsSymbol(e.routedEvent->GetName()).GetStr();
NsSymbol eventName = e.routedEvent->GetName();
Otherwise we have to do:
string eventName = NsSymbol(e.routedEvent->GetName()).GetStr();
- 17 Apr 2015, 02:02
- Forum: General Discussion
- Replies: 11
- Views: 3318
Get element name in event handler
I'm trying to get the element that raised the event in the event handler. void LuaNoesis::Element_OnRoutedEventArgs(BaseComponent* sender, const RoutedEventArgs& e) { NsString elementName = sender->ToString(); } But the above code returns the type of the sender. How can I get the senders name? T...
- 17 Apr 2015, 01:27
- Forum: General Discussion
- Replies: 3
- Views: 1624
Get event by name
I'm trying to get an event by it's name and I was pointed to the following code: const TypeClass* type = button3->GetClassType(); const RoutedEvent* clickEvent = Noesis::Gui::FindRoutedEventRecursive(type, clickEventName); However, FindRuitedEventRecursive's 2nd parameter isn't a string event name, ...
- 15 Apr 2015, 03:34
- Forum: General Discussion
- Replies: 9
- Views: 2564
Re: Transfer from Blend to Noesis app
Got it working. Thank you much!
- 14 Apr 2015, 20:15
- Forum: General Discussion
- Replies: 9
- Views: 2564
Re: Transfer from Blend to Noesis app
So I have a grid container in my xaml file (that is nested in the window). If I remove the Window what happens to all those other resource tags under my Window? How do I handle those? They need to be children of something right? Like what would: <Window.Resources> become if I made the root a Grid ta...
- 14 Apr 2015, 20:04
- Forum: General Discussion
- Replies: 9
- Views: 2564
Re: Transfer from Blend to Noesis app
Yes, and no. When I drag in my xaml into the XAML player it pauses for some time (what seems to be the length of the animation) and then displays another window with the last frame of the animation in it. So it's like as it's animating it doesn't show the window of my xaml but once the animation is ...
- 14 Apr 2015, 19:56
- Forum: General Discussion
- Replies: 9
- Views: 2564
Re: Transfer from Blend to Noesis app
So I removed that class and now I'm getting an error on startup "SystemWindow implementation not found" So the below is how my file starts and the ObjectAnimationUsingKeyFrames tags repeat a ton of times (just removed the class as I'm not interested in a code behind at this time) <Window x...
- 14 Apr 2015, 18:38
- Forum: General Discussion
- Replies: 9
- Views: 2564
Re: Transfer from Blend to Noesis app
OK, I see I have to use the Build tool. So I did that and it converted all the png files just fine, but getting an error when it tries to parse the xaml file. Parsing Window (@1,1). Unknown type 'DALogo.MainWindow' Part of my xaml that probably is relevant (because it's huge) <Window x:Name="wi...
- 14 Apr 2015, 13:55
- Forum: General Discussion
- Replies: 9
- Views: 2564
Transfer from Blend to Noesis app
I created an animated logo in Blend. This logo has 120 frames/images and I'm using a storyboard to "flip" (turn on/off visibility at 20 frames per second). For right now I'm leaving the frames as individual images instead of making an atlas just to get it working. I'll go back and make the...