I have an application in which I have to show multi-line text in TextBlock. But the work I have done is not fitting-In . my filed goes under to next field and also No wrapping or Ellipses showing. Below I am attaching the screen shot of the work and also the XAML of that control's declaration.
<TextBlock Name="txtblock" Padding="10,0,0,0" Text="" FontSize="20" FontFamily="Calibri" Grid.Column="2" TextTrimming="WordEllipsis" Width="228" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="10,0,0,5" TextWrapping="Wrap" />
从TextBlock中删除width属性,这将确保文本框的大小相对于其父级。
Width="228"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.