Domanda

It appears that if you have a Textblock with a Run in it that it will not print with a PrintDocument in Silverlight 5. Anyone else have this problem or a solution?

<TextBlock TextAlignment="Left"
                           FontFamily="Arial"
                           FontSize="14">
                    <Run Text="{Binding type}"/>
                    <Run Text=" "/>
                    <Run Text="{Binding size}"/>
                    <Run Text=" "/>
                    <Run Text="{Binding grade}"/>
                </TextBlock>
È stato utile?

Soluzione

I have found the same issue. Unfortunately I have not found a solution. My work-around is to rewrite the TextBlock as a series of TextBlocks contained inside a StackPanel with Orientation set to Horizontal.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top