Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How can I force an IWpfTextView to refresh/invalidate it's layout?

$
0
0

In my extension(MEF) I want to set tab offsets for every line programitically.

I need to set not only the first tab offset but also the other tab offsets too in the line, so I created TextFormattingParagraphProperties  and do calculation of tab offsets in create methods and return appropriate values. This works untill I want to refresh tab offsets of other lines, expect the line one is changing. Seems VS call ITextParagraphPropertiesFactoryService.Create method only for the edited line.

Is there any way to force the other lines refresh too? 

One way I found is to create a classifier and fire event each time tabs changed, but this works only for VS2010. Are there any reason why refreshing classifer doesn't call ITextParagraphPropertiesFactoryService.Create on VS2012 and call on VS2010? 

Thanks in advance

Arsen


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>