Search found 4 matches
- 08 Jun 2022, 13:05
- Forum: General Discussion
- Replies: 7
- Views: 5377
Re: Create a menu setting popup with a slider inside ContentControl
- Not assigning any value to the Value property (effectively not binding) while still keeping the ConnectEvent implementation doesn't trigger any crash - Tried to binding to a variable that doesn't exist (say changing the name from VolumeMaster to VolumeMaster123) while still keeping the ConnectEven...
- 02 Jun 2022, 11:46
- Forum: General Discussion
- Replies: 7
- Views: 5377
Re: Create a menu setting popup with a slider inside ContentControl
I just checked, it still crashes when OnMasterVolumeChanged is left empty. Here's the definition: void Home::OnMasterVolumeChanged(Noesis::BaseComponent* sender, const Noesis::RoutedPropertyChangedEventArgs<float>& args) { if (auto slider = Noesis::DynamicCast<Noesis::Slider*>(sender)) { UE_LOG(...
- 02 Jun 2022, 10:57
- Forum: General Discussion
- Replies: 7
- Views: 5377
Re: Create a menu setting popup with a slider inside ContentControl
Thanks it worked! I also learned that GetTemplateChild doesn't return anything if the popup is not enabled. But there's a problem. After I implemented the ConnectEvent method for the Home class exactly like above and assign the OnMasterVolumeChanged to ValueChanged in xaml, it worked but crashed whe...
- 01 Jun 2022, 11:15
- Forum: General Discussion
- Replies: 7
- Views: 5377
Create a menu setting popup with a slider inside ContentControl
I'm creating a slider that modifies a variable inside unreal engine by using onewaytosource binding mode (changing volume setting for example). Now I need to create an event that triggered when the value changed but I'm having a hard time doing. I have a Popup element with a ContentControl child tha...