我有一個簡單的TextBlock這樣的(它必須是一個TextBlock):TextBlock HyperLink和Anchor?
<ScrollViewer Height="50" VerticalAlignment="Top">
<TextBlock>
<Hyperlink TargetName="TestAnchor">Test</Hyperlink><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<TextBlock Text="Line" /><LineBreak />
<Hyperlink Name="TestAnchor" />
</TextBlock>
</ScrollViewer>
我想怎麼辦時,用戶點擊超鏈接的頂部,它會向下滾動錨上底部。這在WPF中甚至可能嗎?
謝謝!
錨所擁有的一切(除了新
ICommand
類) ,就像在HTML中(而不是Windows窗體)?我不這麼認爲。 – Marcote 2011-03-30 13:10:46是的,HTML錨點。 – SaphuA 2011-03-30 13:15:51