popup的使用(一)

 

popup的使用(一)

核心代码

注意Hyperlink的使用

<Grid Margin="10">
      <TextBlock TextWrapping="Wrap">You can use a Popup to provide a link for
      a specific <Run TextDecorations="Underline"  
        MouseEnter="run_MouseEnter">term</Run> of interest.</TextBlock>
      <Popup Name="popLink" StaysOpen="False" Placement="Mouse" MaxWidth="200"
             PopupAnimation="Slide" AllowsTransparency = "True">
        <Border BorderBrush="Beige" BorderThickness="2" Background="White">
          <TextBlock Margin="10"  TextWrapping="Wrap" >
            For more information, see
            <Hyperlink NavigateUri="http://en.wikipedia.org/wiki/Term" Click="lnk_Click">Wikipedia</Hyperlink>
          </TextBlock>
        </Border>
      </Popup>
    </Grid>

  

上一篇:栈的简洁版(十分易懂十分明白)只要能明白三个函数你就能明白栈了


下一篇:ASCII编码表(American Standard Code for Information Interchange)