calculator/src/Calculator
Rudy Huyn de65db6197 Decrease CPU usage of OverflowTextBlock + optimization (#403)
Fixes #402 and #414
Divide by 4 the CPU usage of OverflowTextBlock when buttons are pressed very quickly.

Description of the changes:

Xaml-side:
OverflowTextBlock has some performance issues:
double scrollviewer: the listview was in a scrollviewer, while the control already containing one -> it breaks the virtualization of the listview and impacts on UI performance.
The listview used a StackPanel, this panel doesn't support virtualization of ListViewItems contrary to ItemsStackPanel

No ListView-specific features were used, an ItemsControl is more efficient and lighter.
refactor how we manage the visibility of the left/right buttons in OverflowTextBlock, the new version is more reactive and will not display the right arrow when not necessary (see GIF below).
remove the ItemContainerSelector ExpressionItemContainerStyle, not really used by OverflowTextBlock

remove UI glitches generated by ChangeView when users type fast (control partially hidden and scrolling issues, see the GIF below).
only modify the accessibility view when it's necessary

ViewModel-side:
stop fully refreshing ExpressionTokens in StandardCalculatorViewModel when a new command were sent, instead, use a IObservableVector to only send new tokens to the UI (in average only 1 or 2 UI items are refreshed while the full expression was refreshed before)

How changes were validated:
Manually
2019-04-18 15:21:33 -07:00
..
Assets Optimised images losslessly. (#229) 2019-03-13 16:37:50 -07:00
Common Updating comments per the C++ core guidelines and removing trailing whitespace (#194) 2019-03-14 23:30:07 -07:00
Controls Decrease CPU usage of OverflowTextBlock + optimization (#403) 2019-04-18 15:21:33 -07:00
Converters Decrease CPU usage of OverflowTextBlock + optimization (#403) 2019-04-18 15:21:33 -07:00
DesignData Spelling (#135) 2019-03-07 10:27:13 -08:00
Resources Add support for Pyeong, a Korean floorspace unit. (#444) 2019-04-16 17:53:08 -07:00
Views Decrease CPU usage of OverflowTextBlock + optimization (#403) 2019-04-18 15:21:33 -07:00
AboutFlyout.xaml Update the year in the Copyright string (#320) 2019-03-25 11:11:24 -07:00
AboutFlyout.xaml.cpp Update the year in the Copyright string (#320) 2019-03-25 11:11:24 -07:00
AboutFlyout.xaml.h Hello GitHub 2019-01-28 16:24:37 -08:00
App.xaml Optimize and simplify CalculationResult to be able to update the FontSize and the DisplayMargin without fully updating the Style. (#217) 2019-04-05 13:04:39 -07:00
App.xaml.cpp - Avoid referencing project headers from precompiled headers. 2019-02-14 18:20:25 -08:00
App.xaml.h Hello GitHub 2019-01-28 16:24:37 -08:00
Calculator.rc Hello GitHub 2019-01-28 16:24:37 -08:00
Calculator.vcxproj Decrease CPU usage of OverflowTextBlock + optimization (#403) 2019-04-18 15:21:33 -07:00
Calculator.vcxproj.filters Decrease CPU usage of OverflowTextBlock + optimization (#403) 2019-04-18 15:21:33 -07:00
Package.appxmanifest Hello GitHub 2019-01-28 16:24:37 -08:00
packages.config Update WinUI to 2.0.181018004 (#18) 2019-02-13 09:44:02 -08:00
pch.cpp Hello GitHub 2019-01-28 16:24:37 -08:00
pch.h Improve the support of Narrator with parenthesis (#368) 2019-04-15 09:31:02 -07:00
TemporaryKey.pfx Add TemporaryKey.pfx (#354) 2019-03-21 17:03:42 -07:00
WindowFrameService.cpp Updating comments per the C++ core guidelines and removing trailing whitespace (#194) 2019-03-14 23:30:07 -07:00
WindowFrameService.h Updating comments per the C++ core guidelines and removing trailing whitespace (#194) 2019-03-14 23:30:07 -07:00