Skip to content

where is docs for Drawing Text in winui? #4051

Answered by castorix
ghost1372 asked this question in Q&A
Discussion options

You must be logged in to vote

It is quick draft code atm but it is about the same as the code from Junjie Zhu - MSFT in your thread in MSDN (https://learn.microsoft.com/en-us/answers/questions/1465983/how-to-port-drawingbrush-stuff-from-wpf-to-winui-3)
The only difference is that I draw it in WM_PAINT (SetWindowSubclass, ...) and I added a SwapChainPanel (like in the GitHub sample for transparency) to show the background
But it could be simpler with Composition (although I had tried without Win2D (like in Wice) and failed...)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@ghost1372
Comment options

@castorix
Comment options

@ghost1372
Comment options

Comment options

You must be logged in to vote
3 replies
@ghost1372
Comment options

@castorix
Comment options

Answer selected by ghost1372
@ghost1372
Comment options

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