Search found 62 matches
- 06 Mar 2018, 04:31
- Forum: General Discussion
- Replies: 13
- Views: 3024
Re: How to send event from view to VM?
Hi UE4, Yes, we do. It's in a class named NoesisGUIExtensions.EventToCommand that exposes several dependency properties. You can find an example of its use in the Menu3D sample. Here's a xaml that uses it: https://github.com/Noesis/Tutorials/blob/master/Samples/Menu3D/C%2B%2B/Data/StartMenu.xaml Ho...
- 05 Mar 2018, 07:48
- Forum: General Discussion
- Replies: 3
- Views: 1220
Re: Question about RaiseEVent(Args) and sample UserControl
In UserControl, it is defined a raw Event: //your sample RoutedEvent_<Noesis::RoutedPropertyChangedEventHandler<int>::Handler> ValueChanged() { return RoutedEvent_<RoutedPropertyChangedEventHandler<int>::Handler>(this, ValueChangedEvent); } And I defined a custom event: Noesis::UIElement::RoutedEven...
- 05 Mar 2018, 05:33
- Forum: General Discussion
- Replies: 7
- Views: 2062
Re: UE4 Storyboard Completed Event
Hi Jake, Completed is an event, so you can't use Bindings with it. However, we have implemented a couple of Attached Properties in the class EventToCommand that you can use like this: <Storyboard x:Key="OnMainHide" EventToCommand.Event="Completed" EventToCommand.Command="{B...
- 05 Mar 2018, 02:46
- Forum: General Discussion
- Replies: 3
- Views: 1220
Question about RaiseEvent(Args) and sample UserControl
In UserControl sample, I find the RaiseEvent(Args) is used to send event to MainWIndow, I want to know, if I have more than one event to send, how can I do it MyControl.Xaml <UserControl> <TouchButton TouchDown="EventA" TouchUp="EventB"/> </UserControl> class { virtual bool Conne...
- 02 Mar 2018, 07:30
- Forum: General Discussion
- Replies: 13
- Views: 3024
Re: How to send event from view to VM?
Hi UE4, Yes, we do. It's in a class named NoesisGUIExtensions.EventToCommand that exposes several dependency properties. You can find an example of its use in the Menu3D sample. Here's a xaml that uses it: https://github.com/Noesis/Tutorials/blob/master/Samples/Menu3D/C%2B%2B/Data/StartMenu.xaml Ho...
- 02 Mar 2018, 05:36
- Forum: General Discussion
- Replies: 1
- Views: 1277
How to find the control in the ItemsControls in C++?
How to find the TouchButton List? I need to find every TouchButton for Binding event in view code. so I think should get the all TouchButton in the WrapPanel seems like this but in C++ https://stackoverflow.com/questions/603203/wpf-itemscontrol-how-do-i-get-find-my-checkbox-item-that-is-in-the-itemt...
- 01 Mar 2018, 14:11
- Forum: General Discussion
- Replies: 13
- Views: 2931
Re: A data binding question
How to find the TouchButton in the ItemsControl?
- 01 Mar 2018, 04:13
- Forum: General Discussion
- Replies: 13
- Views: 3024
Re: How to send event from view to VM?
Does NoesisGUI has a module can convert event to command such as System.Windows.Interactivity ?
- 28 Feb 2018, 08:21
- Forum: General Discussion
- Replies: 13
- Views: 3024
How to send event from view to VM?
I want to send event from View to VM MyView.xaml <Button TouchDown="HandeTouchDown" TouchUp="HandleTouchUp"> MyView.h class { //connect event virtual bool ConnectEvent() override; void HandleTouchDown() { //let vm konw touch down } void HandleTouchUp() { if(index == touchDevice &...
- 27 Feb 2018, 04:54
- Forum: General Discussion
- Replies: 2
- Views: 1169