日期:2014-05-18  浏览次数:21418 次

WPF:如何修改ToolTip里文字的字体和文字大小?
求教了。。

------解决方案--------------------
为ToolTip单独写样式
C# code

    <Style x:Key="Simple" TargetType="{x:Type ToolTip}">
      <Setter Property = "HorizontalOffset" Value="50"/>
      <Setter Property = "VerticalOffset" Value="50"/>
      <Setter Property = "Background" Value="LightBlue"/>
      <Setter Property = "Foreground" Value="Purple"/>
      <Setter Property = "FontSize" Value="20"/>
      <Setter Property = "FontWeight" Value="Bold"/>
    </Style>