Replies: 5 comments
-
Unlike a CanvasAnimatedControl, the CanvasControl doesn't automatically redraw. You need to call CanvasControl.Invalidate() when it's content has changed. |
Beta Was this translation helpful? Give feedback.
-
@DHancock that's adequate for what I'm doing since I'm not really animating anything--displaying something new every half minute. |
Beta Was this translation helpful? Give feedback.
-
@myokeeh can you call |
Beta Was this translation helpful? Give feedback.
-
@michael-hawker, I'm doing that every time I draw something now. This particular app is supposed to be a full screen Kiosk app, so it is not allowed to resize. On to tackling getting rid of the title bar and bugging someone about lack of Kiosk mode support with WinUI/WindowsAppSDK. |
Beta Was this translation helpful? Give feedback.
-
Oh, sorry I inverted the statement you mentioned about it only drawing when resizing the app vs. not drawing when resizing the app. |
Beta Was this translation helpful? Give feedback.
-
I just did my preliminary "upgrade" using upgrade-assistant of a Kiosk UWP with Win2D. It's now in a state that I can run it and most of the code seems to work.
I found another thread here that says
CanvasAnimatedControl
can be replaced byCanvasControl
, however the app now doesn't show what's drawn unless I resize the app window.As the name implies, maybe that's what sets
CanvasAnimatedControl
apart fromCanvasControl
. Is it something that hasn't been ported over?Beta Was this translation helpful? Give feedback.
All reactions