xamarin-forms-samples icon indicating copy to clipboard operation
xamarin-forms-samples copied to clipboard

ShapesDemos broken

Open sjorsmiltenburg opened this issue 4 years ago • 1 comments

Today I ran the xamarin-forms-samples/UserInterface/ShapesDemos/

On Android also not all samples work

  • only a quarter of the analog clock demo is rendered.
  • the flower demo seems broken with only a part rendered

On UWP a lot of the samples don't show up or render completely

  • flower demo -> does not show anything
  • baby elephant demo -> does not show anything

also, on uwp it renders for me on a black background, (because of black windows theme?) making the cat sample and the analog clock sample invisible.

sjorsmiltenburg avatar Dec 21 '20 09:12 sjorsmiltenburg

I ran into the same issues testing the shapes on the android emulator noted by @sjorsmiltenburg .

I'm particularly interested in why the clock hands don't rotate in the example. I tried following the pattern shown in my own app and updating the Angle bound to RotateTransform didn't result the path being rotated over time. I tried both the bindable property on the view and a full property with INotifyPropertyChanged on the view model. Neither of these worked. I suspect some sort of issue with the binding itself, because initializing the backing field in the view model to 50, didn't result in the initial render of the path being rotated. That only seemed to happen if I put 50 in the RotateTransform without binding.

image

Siphonophora avatar Mar 14 '21 15:03 Siphonophora