Wangshiyou
Topic Author
Posts: 9
Joined: 07 Mar 2018, 02:21

How to deal with Delay?

16 Mar 2018, 08:14

When a propertychanged ,i want to prevent its event to occur during Delay time,could anyone give me a suggestion? Thanks a lot
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: How to deal with Delay?

16 Mar 2018, 10:53

This is not related to Noesis so probably not the best place to ask about it. Anyway, have you tried this?

https://stackoverflow.com/questions/155 ... ion-in-wpf
 
Wangshiyou
Topic Author
Posts: 9
Joined: 07 Mar 2018, 02:21

Re: How to deal with Delay?

16 Mar 2018, 11:06

<TextBox Text="{Binding ElementName=txtSampleText, Path=FontSize, Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged, Delay=500}" Name="txtFontSize"></TextBox>
I main when i put xaml into ue4 ,Delay just cannot work, Delay is a property of trigger , if it cannot be directly implemented, should i set a custom eventtrigger and then accomplish this Delay fuction
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: How to deal with Delay?

16 Mar 2018, 11:18

Oh, sorry for misunderstanding you. Yes, Binding.Delay is not implemented. Could you please report about it? Thanks!
 
UE4
Posts: 62
Joined: 29 Dec 2017, 06:32

Re: How to deal with Delay?

03 Apr 2018, 04:59

Hi,
How can use Clock or Timeline to implement a delay delegate? I see some WPF use Threading/ Timer do this, but nothing about Clock or Timeline
I want to implement a LongPress for my UserControl, instead of ViewModel, so I think it's not a good ideal to reference something in UE4.

Who is online

Users browsing this forum: Google [Bot], vinick and 64 guests