Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples needed #714

Closed
jevansAN opened this issue Nov 3, 2018 — with docs.microsoft.com · 3 comments
Closed

Examples needed #714

jevansAN opened this issue Nov 3, 2018 — with docs.microsoft.com · 3 comments
Assignees

Comments

Copy link

jevansAN commented Nov 3, 2018

Really would like to see specific C++/winrt examples for the usage of every class and method. How to declare a virtual drawing surface and place it as the content of a Grid or Canvas, how to draw a few shapes into it, how to declare a handler for draw events, etc. etc.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@stevewhims
Copy link
Member

Hi, @jevansAN, CompositionVirtualDrawingSurface inherits from CompositionDrawingSurface (and adds just one member to that). There's a C++/WinRT CoreWindow (admittedly, not a XAML app) code example of CompositionDrawingSurface here: https://docs.microsoft.com/windows/uwp/composition/composition-native-interop. And then this topic shows how to use Composition + XAML with C++/WinRT: https://docs.microsoft.com/windows/uwp/composition/using-the-visual-layer-with-xaml. I realize that these don't show exactly what you're asking for (and we don't aim to have a code example for EVERY class and member), but I wanted to draw those two topics (and their code examples) to your attention to see whether together they constitute any help with your scenario.

@stevewhims
Copy link
Member

Hi, @jevansAN. I'll go ahead and close this issue now. It's been a while, and my comment above is the resolution that I'd offer. Please reopen if I made a mistake in closing. ~Steve

@jevansAN
Copy link
Author

jevansAN commented Jan 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants