fix on StringSize for WPF & WPF sample compiles again