To do custom 2D graphics in Java/Swing, I subclass JPanel and override paintComponent.
To do custom 2D graphics in Android, I subclass View and override onDraw.
To do custom 2D graphics in iOS, I subclass UIView and override drawRect.
How can I do the same thing in C# for a Windows Store (Win8.1) mobile app? What I've found thus far on Google has not been promising. This page suggests that no such API exists unless I build my GUI in XAML or go with Direct2D in C++. Has anyone found an API for C# that gives the same flexibility I already have with Swing, Android, and iOS?
The page is right. That functionality does not exist. To get similar functionality you will have to make a WriteableBitmap
and use that in your view.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.