Diederik Krols
Diederik Krols
Something goes wrong in the OnApplyTemplate method. Can you double check that the style template is in your project (Themes\Generic.xaml - name and path is important) ? I assume that...
Tomorrow I will create a branch with an almost working version of a fixed-ratio image cropper.
Please check this branch: https://github.com/XamlBrewer/UWP-ImageCropper-/tree/fixed-ratio
Actually I prefer my proposed implementation: only assign MaxWidth when it's relevant, otherwise don't touch it and let the basic layout routine do its work. Programmatically setting MaxWidth to zero...
I agree that the fix doesn't solve UI issues, it only prevents a crash.