Click here to Skip to main content
16,008,183 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Wrapping Text in Canvas Pin
indian14326-Oct-11 12:18
indian14326-Oct-11 12:18 
QuestionHow to compile single project for Silverlight and then standard .NET Pin
Member 103390725-Oct-11 5:17
Member 103390725-Oct-11 5:17 
AnswerRe: How to compile single project for Silverlight and then standard .NET Pin
Member 103390726-Oct-11 21:50
Member 103390726-Oct-11 21:50 
QuestionLet user adjust control size Pin
Loveisasea24-Oct-11 19:57
Loveisasea24-Oct-11 19:57 
AnswerRe: Let user adjust control size Pin
Wayne Gaylard24-Oct-11 21:04
professionalWayne Gaylard24-Oct-11 21:04 
GeneralRe: Let user adjust control size Pin
Loveisasea24-Oct-11 21:55
Loveisasea24-Oct-11 21:55 
GeneralRe: Let user adjust control size Pin
Wayne Gaylard24-Oct-11 22:05
professionalWayne Gaylard24-Oct-11 22:05 
QuestionWPF Hyperlink Question Pin
Kevin Marois24-Oct-11 9:51
professionalKevin Marois24-Oct-11 9:51 
I have styled a list so that the list items appear as hyperlinks. Here's my xaml:

<UserControl.Resources>

    <converters:ProjectTypeImageValueConverter x:Key="projectTypeConverter"/>

    <!--This is the template for the Recent projects list items-->
    <DataTemplate DataType="{x:Type local:RecentProjectModel}">
        <StackPanel Orientation="Horizontal"
                    Margin="2">
            <Image Source="{Binding ProjectType, Converter={StaticResource projectTypeConverter}}"
                    Margin="0,0,5,0"/>
            <TextBlock Width="150">
                <Hyperlink Foreground="RoyalBlue">
                    <TextBlock Text="{Binding Caption}"/>
                </Hyperlink>
            </TextBlock>
        </StackPanel>
    </DataTemplate>
        
</UserControl.Resources>


and

<ListBox x:Name="lstRecent"
            Grid.Row="1"
            Grid.Column="0"
            ItemsSource="{Binding RecentProjects}"
            SelectedItem="{Binding SelectedRecentProject}"
            BorderThickness="0"
            Margin="3"
            MinWidth="235"/>


When I click the link, the SelectedRecentProject is not set. If I click the image of the list item, it is set. How do I set the SelectedRecentProject when the link is clicked?

Thanks
Everything makes sense in someone's mind

GeneralRe: WPF Hyperlink Question Pin
Kevin Marois24-Oct-11 10:15
professionalKevin Marois24-Oct-11 10:15 
AnswerRe: WPF Hyperlink Question Pin
SledgeHammer0124-Oct-11 10:11
SledgeHammer0124-Oct-11 10:11 
GeneralRe: WPF Hyperlink Question Pin
Kevin Marois24-Oct-11 10:16
professionalKevin Marois24-Oct-11 10:16 
GeneralRe: WPF Hyperlink Question Pin
SledgeHammer0124-Oct-11 10:19
SledgeHammer0124-Oct-11 10:19 
GeneralRe: WPF Hyperlink Question Pin
Kevin Marois24-Oct-11 10:25
professionalKevin Marois24-Oct-11 10:25 
GeneralRe: WPF Hyperlink Question Pin
Kevin Marois25-Oct-11 6:18
professionalKevin Marois25-Oct-11 6:18 
QuestionWPF Data Template Question Pin
Kevin Marois24-Oct-11 7:37
professionalKevin Marois24-Oct-11 7:37 
AnswerRe: WPF Data Template Question Pin
SledgeHammer0124-Oct-11 8:27
SledgeHammer0124-Oct-11 8:27 
GeneralRe: WPF Data Template Question Pin
Kevin Marois24-Oct-11 8:30
professionalKevin Marois24-Oct-11 8:30 
GeneralRe: WPF Data Template Question Pin
SledgeHammer0124-Oct-11 8:33
SledgeHammer0124-Oct-11 8:33 
GeneralRe: WPF Data Template Question Pin
Kevin Marois24-Oct-11 8:44
professionalKevin Marois24-Oct-11 8:44 
GeneralRe: WPF Data Template Question Pin
Kevin Marois24-Oct-11 9:09
professionalKevin Marois24-Oct-11 9:09 
QuestionWPF MVVM Nested Views Pin
Kevin Marois21-Oct-11 11:51
professionalKevin Marois21-Oct-11 11:51 
AnswerRe: WPF MVVM Nested Views Pin
SledgeHammer0121-Oct-11 12:05
SledgeHammer0121-Oct-11 12:05 
GeneralRe: WPF MVVM Nested Views Pin
Kevin Marois21-Oct-11 12:14
professionalKevin Marois21-Oct-11 12:14 
GeneralRe: WPF MVVM Nested Views Pin
SledgeHammer0121-Oct-11 12:41
SledgeHammer0121-Oct-11 12:41 
AnswerRe: WPF MVVM Nested Views Pin
Abhinav S21-Oct-11 18:15
Abhinav S21-Oct-11 18:15 

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.