Skip to content

Create a UIImage from a DataTemplate #12027

Discussion options

You must be logged in to vote

@Kazo @MarcAntoineHien Indeed, you will not be able to take an image of a DataTemplate, but you may be able to use RenderTargetBitmap to render the DataTemplate in a ContentControl using ContentControl.ContentTemplate. See this documentation on how to use it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kazo0
Comment options

kazo0 Apr 21, 2023
Collaborator

@jeromelaban
Comment options

Answer selected by kazo0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants