WPF - TextBlock - Cannot override OnRender

Posted by Nitin Chaudhari on Stack Overflow See other posts from Stack Overflow or by Nitin Chaudhari
Published on 2010-04-29T07:12:05Z Indexed on 2010/04/29 7:17 UTC
Read the original article Hit count: 503

Filed under:
|
|

Hi,

I am creating a custom control by deriving TextBlock, my intention is to do some custom rendering based on some dependency properties. However the OnRender method is sealed on TextBlock. Although I can get my work done by overriding OnRenderSizeChanged, this is not correct. Any ideas on how can i do it the right way?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about textblock