ID Zip Room
----------- ---------- ------
317 94087 S105
318 94087 L603
1739 94404-1801 L603
1823 94401-2129 L603
1824 94401-2129 L603
2135 94404-1801 L603
2268 95136-1459 S604
2269 95136-1459 S604
3704 92673-6417 L402
4479 93454-9670 L402
4480 93454-9670 L402
4782 92395-4681 L402
4783 92395-4681 L402
4852 92886-4411 L402
4853 92886-4411 L402
4959 92673-6417 L402
5153 91773-4028 L402
5202 91773-4028 L402
5211 91765-2959 L402
5212 91765-2959 L402
5388 92336-0605 L402
5392 92336-0605 L402
5727 92870 L402
5728 92870 L402
5831 92557 …Run Code Online (Sandbox Code Playgroud) TABLEA
JobCode Job1 Job2 Job3 zip
------- ---- ---- ---- ----------
F F S NULL 90030
F F S NULL 90031
F F S NULL 90031
F F S NULL 90034
F F NULL 90034
F F S NULL 90034
F F S NULL 90034
F F NULL 90034
F F S NULL 90035
F F NULL 90035-4640
Run Code Online (Sandbox Code Playgroud)
预期成绩:
JobCode Job1 Job2 Job3 zip
------- ---- ---- ---- ----------
F F S NULL 90034
F F NULL 90034
F F …Run Code Online (Sandbox Code Playgroud) 为什么 TextTrimming 对第一个 TextBlock 有效,而对第二个 TextBlock 无效?我在我的 xaml 上使用 LineBreaks,这是我需要显示的文本的一部分。
代码:
<Window x:Class="WpfApplication2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid VerticalAlignment="Center">
<StackPanel>
<TextBlock TextTrimming="WordEllipsis" TextWrapping="Wrap" Width="20" Height="20" Background="Yellow">
1 2 3 4 5
</TextBlock>
<TextBlock TextTrimming="WordEllipsis" TextWrapping="Wrap" Width="20" Height="20" Background="Aqua">
1
<LineBreak/>
2
<LineBreak/>
3
<LineBreak/>
4
<LineBreak/>
5
</TextBlock>
</StackPanel>
</Grid>
Run Code Online (Sandbox Code Playgroud)
输出:
