2 개의 텍스트 블록이있는 스택 패널이 있습니다. 문제는 내 textblocks가 텍스트를 래핑하지 않는다는 것입니다. 텍스트 블록 줄 바꿈이 하나 뿐인 경우에도 이상한 점은 작동하지 않습니다.스택 패널의 텍스트 줄 바꾸기
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" Grid.Row="1" Grid.ColumnSpan="2" Margin="0">
<!--<ContentControl Width="800">-->
<TextBlock x:Name="textBlock" TextWrapping="Wrap" Text="{Binding Path=StaticTextLibrary.ApplicationSubtitle, Source={StaticResource ResourcesManager}}"
FontSize="14" HorizontalAlignment="Left" Foreground="{StaticResource text}" Opacity="0" RenderTransformOrigin="0.5,0.5"
VerticalAlignment="Bottom" Padding="5" Height="30">
<TextBlock.RenderTransform>
<CompositeTransform TranslateX="30"/>
</TextBlock.RenderTransform>
</TextBlock>
<!--</ContentControl>-->
<TextBlock x:Name="subTitlePostfix" TextWrapping="Wrap" Text="by Credit Suisse©" Margin="6,0,0,0" Opacity="0" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="{StaticResource text}" Padding="0,4,0,0" >
<TextBlock.RenderTransform>
<CompositeTransform TranslateX="30"/>
</TextBlock.RenderTransform>
</TextBlock>
</StackPanel>
어디에서 실수 했습니까?
TextBlock의 텍스트가 스택 패널 외부로 나가서 잘립니다. (예 : 텍스트의 일부만 보시겠습니까?) –
예, 맞습니다. @Baboon – user278618