Click here to Skip to main content
15,914,500 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Forms Authentication Pin
VisualLive5-Feb-09 23:36
VisualLive5-Feb-09 23:36 
GeneralRe: Forms Authentication Pin
Pete O'Hanlon6-Feb-09 1:09
mvePete O'Hanlon6-Feb-09 1:09 
GeneralRe: Forms Authentication Pin
VisualLive8-Feb-09 20:36
VisualLive8-Feb-09 20:36 
GeneralRe: Forms Authentication Pin
Pete O'Hanlon8-Feb-09 22:24
mvePete O'Hanlon8-Feb-09 22:24 
GeneralRe: Forms Authentication Pin
VisualLive8-Feb-09 22:40
VisualLive8-Feb-09 22:40 
GeneralRe: Forms Authentication Pin
Pete O'Hanlon11-Feb-09 4:58
mvePete O'Hanlon11-Feb-09 4:58 
GeneralRe: Forms Authentication Pin
VisualLive11-Feb-09 15:54
VisualLive11-Feb-09 15:54 
QuestionHypreLink in WPF User control. Pin
saku695-Feb-09 20:55
saku695-Feb-09 20:55 
Hey everyone,
I am doing my first WPF User control. I am trying to get my hyperlink to open a new IE browser when I press a on my "link label".

my code sampel;

<DataTemplate x:Key="resultLayout" DataType="WPFSearchResult">
<StackPanel Orientation="Vertical">
<TextBlock Foreground="Blue">
<Hyperlink Name="hl" RequestNavigate="HandleRequestNavigate" FontSize="14" NavigateUri="http://www.microsoft.com">
<TextBlock Text="{Binding Path=Header}"/>
</Hyperlink>
</TextBlock>
</StackPanel>
</DataTemplate>

When I press on the HyperLink nothing happen.

This is a sampel of my code behid class;

namespace WpfShowResultsControl
{
public partial class GetSearchResultUserControl : UserControl
{
public GetSearchResultUserControl()
{
InitializeComponent();
}

void HandleRequestNavigate(object sender, RoutedEventArgs e)
{
string navigateUri = hl.NavigateUri.ToString();
Process.Start(new ProcessStartInfo(navigateUri));
e.Handled = true;
}
}
}


I have tried many eksampels on diffrent forums and I cannot get it works. I have also tried like this <Hyperlink x:Name="hl".....> Frown | :( Confused | :confused:
In my code behind class, I cannot use hl, it looks like it does not exist. What can I do to get hl useable? Could any one please advice me what I am missin in my code. Many thanks in advance!
Confused | :confused: Confused | :confused:
AnswerRe: HypreLink in WPF User control. Pin
schiebel-t6-Feb-09 1:56
schiebel-t6-Feb-09 1:56 
GeneralRe: HypreLink in WPF User control. Pin
ABitSmart7-Feb-09 3:48
ABitSmart7-Feb-09 3:48 
AnswerRe: HypreLink in WPF User control. Pin
Leung Yat Chun8-Feb-09 0:26
Leung Yat Chun8-Feb-09 0:26 
QuestionHosting Workflow designer inside a ASP.net application Pin
Laddie5-Feb-09 19:00
Laddie5-Feb-09 19:00 
AnswerRe: Hosting Workflow designer inside a ASP.net application Pin
Pete O'Hanlon5-Feb-09 22:54
mvePete O'Hanlon5-Feb-09 22:54 
GeneralRe: Hosting Workflow designer inside a ASP.net application Pin
Laddie5-Feb-09 23:01
Laddie5-Feb-09 23:01 
QuestionWPF storyboard and animation Pin
koleraba5-Feb-09 8:50
koleraba5-Feb-09 8:50 
AnswerRe: WPF storyboard and animation [modified] Pin
sivaddrahcir6-Feb-09 12:17
sivaddrahcir6-Feb-09 12:17 
GeneralRe: WPF storyboard and animation Pin
koleraba7-Feb-09 2:06
koleraba7-Feb-09 2:06 
Questionlink a custom control to a dictionaryResources Pin
Rami Shareef5-Feb-09 2:10
Rami Shareef5-Feb-09 2:10 
AnswerRe: link a custom control to a dictionaryResources Pin
BlitzPackage5-Feb-09 8:30
BlitzPackage5-Feb-09 8:30 
QuestionWPF window in ICQ style Pin
prattel4-Feb-09 23:16
prattel4-Feb-09 23:16 
AnswerRe: WPF window in ICQ style Pin
Pete O'Hanlon5-Feb-09 0:09
mvePete O'Hanlon5-Feb-09 0:09 
GeneralRe: WPF window in ICQ style [modified] Pin
sivaddrahcir6-Feb-09 7:30
sivaddrahcir6-Feb-09 7:30 
QuestionPlease help me Pin
haticeaaaaaa4-Feb-09 20:39
haticeaaaaaa4-Feb-09 20:39 
AnswerDon't bump your post. Pin
Pete O'Hanlon4-Feb-09 23:39
mvePete O'Hanlon4-Feb-09 23:39 
GeneralRe: Don't bump your post. Pin
haticeaaaaaa5-Feb-09 2:45
haticeaaaaaa5-Feb-09 2:45 

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.