Template10
Template10 copied to clipboard
NavButtonBehavior Current_SizeChanged causes lags when resizing
Resizing Application in Minimal Template after navigating to detail page is not fluent. it's caused by Calculate method. Resolved with #292
Please try
async void SizeChanged() { await Task.Run(() => Calculate()); }
A timer is a heavy approach to this problem.
Hi, I have found that Calculate() method must run in Gui thread. so I tried this
await Task.Factory.StartNew(() =>
{
Calculate();
}, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.FromCurrentSynchronizationContext())
Resizing is more fluent, but it is not so good as with the timer approach.