I want to change the interval of my dispatcher time in run time here is my code :
InitializeComponent();
DispatcherTimer messageTimer = new DispatcherTimer();
messageTimer.Tick += new EventHandler(messageTimer_Tick);
messageTimer.Interval = TimeSpan.FromSeconds(1);
messageTimer.Start();
idk how to change the interval of the DispatcherTimer at run time
I created two textblocks and a button.
textblock : x:Name="txt_Count"
textblock : x:Name="txt_TimeNow"
Button : x:Name="btn_changeTime_s"
If you need to modify the Main UI Thread in the background, use the syntax