Click here to Skip to main content
15,910,872 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Change label font at runtime Pin
BlitzPackage26-Jan-09 5:25
BlitzPackage26-Jan-09 5:25 
GeneralRe: Change label font at runtime Pin
Pete O'Hanlon26-Jan-09 9:12
mvePete O'Hanlon26-Jan-09 9:12 
GeneralRe: Change label font at runtime Pin
BlitzPackage26-Jan-09 14:47
BlitzPackage26-Jan-09 14:47 
GeneralRe: Change label font at runtime Pin
Paolo Costa26-Jan-09 20:58
Paolo Costa26-Jan-09 20:58 
GeneralRe: Change label font at runtime Pin
Pete O'Hanlon26-Jan-09 22:23
mvePete O'Hanlon26-Jan-09 22:23 
GeneralRe: Change label font at runtime Pin
Paolo Costa30-Jan-09 1:10
Paolo Costa30-Jan-09 1:10 
GeneralRe: Change label font at runtime Pin
Pete O'Hanlon31-Jan-09 10:54
mvePete O'Hanlon31-Jan-09 10:54 
QuestionText Hotlinks in WPF Pin
BlitzPackage25-Jan-09 8:26
BlitzPackage25-Jan-09 8:26 
AnswerRe: Text Hotlinks in WPF Pin
Pete O'Hanlon25-Jan-09 8:57
mvePete O'Hanlon25-Jan-09 8:57 
GeneralRe: Text Hotlinks in WPF Pin
BlitzPackage25-Jan-09 13:55
BlitzPackage25-Jan-09 13:55 
GeneralRe: Text Hotlinks in WPF Pin
Pete O'Hanlon25-Jan-09 22:37
mvePete O'Hanlon25-Jan-09 22:37 
GeneralRe: Text Hotlinks in WPF Pin
Jammer25-Jan-09 23:19
Jammer25-Jan-09 23:19 
GeneralRe: Text Hotlinks in WPF Pin
BlitzPackage26-Jan-09 5:22
BlitzPackage26-Jan-09 5:22 
GeneralRe: Text Hotlinks in WPF Pin
Pete O'Hanlon26-Jan-09 8:20
mvePete O'Hanlon26-Jan-09 8:20 
GeneralRe: Text Hotlinks in WPF Pin
Ray Cassick27-Jan-09 10:06
Ray Cassick27-Jan-09 10:06 
GeneralRe: Text Hotlinks in WPF Pin
Pete O'Hanlon27-Jan-09 10:09
mvePete O'Hanlon27-Jan-09 10:09 
GeneralRe: Text Hotlinks in WPF Pin
Ray Cassick27-Jan-09 10:12
Ray Cassick27-Jan-09 10:12 
GeneralRe: Text Hotlinks in WPF Pin
Pete O'Hanlon26-Jan-09 2:24
mvePete O'Hanlon26-Jan-09 2:24 
Here's a XAML version that underlines the text when the mouse is over the label. By default, the effects are removed when the mouse leaves the area, so you don't need to handle the leaving events.
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StackPanel>
  <TextBlock>Font underline sample.</TextBlock>
  <TextBlock x:Name="myLink" Text="Click here">
    <TextBlock.Style>
      <Style>
        <Style.Triggers>
          <Trigger Property="TextBlock.IsMouseOver" Value="True">
            <Setter Property="TextBlock.TextDecorations" Value="Underline" />
            <Setter Property="TextBlock.Foreground" Value="Blue" />
          </Trigger>
        </Style.Triggers>
      </Style>
    </TextBlock.Style>
  </TextBlock>
</StackPanel>
</Page>
All that you need to add is the click event handling.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



GeneralRe: Text Hotlinks in WPF Pin
BlitzPackage26-Jan-09 5:23
BlitzPackage26-Jan-09 5:23 
Questionellipse rendertransform Pin
hotthoughtguy24-Jan-09 6:15
hotthoughtguy24-Jan-09 6:15 
AnswerRe: ellipse rendertransform Pin
Mark Salsbery25-Jan-09 8:04
Mark Salsbery25-Jan-09 8:04 
QuestionChannel9 Silverlight Videos Pin
Kevin McFarlane24-Jan-09 4:07
Kevin McFarlane24-Jan-09 4:07 
AnswerRe: Channel9 Silverlight Videos Pin
DaveX8624-Jan-09 4:53
DaveX8624-Jan-09 4:53 
GeneralRe: Channel9 Silverlight Videos Pin
Kevin McFarlane24-Jan-09 5:22
Kevin McFarlane24-Jan-09 5:22 
GeneralRe: Channel9 Silverlight Videos Pin
DaveX8624-Jan-09 5:27
DaveX8624-Jan-09 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.