Click here to Skip to main content
15,924,193 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF Hyperlink Question Pin
Kevin Marois24-Oct-11 9:51
professionalKevin Marois24-Oct-11 9:51 
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 
I have this data template

HTML
<UserControl.Resources>
        
    <!--This is the template for the Recent projects list items-->
    <DataTemplate DataType="{x:Type local:RecentProjectModel}">
        <StackPanel Orientation="Horizontal">
            <Image Source="/...;component/Media/Graphics/abtech_triangle_blue_small.png"
                    Margin="0,0,5,0"/>
            <TextBlock Width="150">
                <Hyperlink>
                    <TextBlock Text="{Binding Caption}"/>
                </Hyperlink>
            </TextBlock>
        </StackPanel>
    </DataTemplate>
        
</UserControl.Resources>


I would like to change the image based off the value of a property called ProjectType on the RecentProjectModel class.

How do I do this?

Thanks
Everything makes sense in someone's mind


modified 24-Oct-11 13:44pm.

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 
GeneralRe: WPF MVVM Nested Views Pin
SledgeHammer0122-Oct-11 7:24
SledgeHammer0122-Oct-11 7:24 
AnswerRe: WPF MVVM Nested Views Pin
Pete O'Hanlon24-Oct-11 5:36
mvePete O'Hanlon24-Oct-11 5:36 
GeneralRe: WPF MVVM Nested Views Pin
Pete O'Hanlon24-Oct-11 6:02
mvePete O'Hanlon24-Oct-11 6:02 
GeneralRe: WPF MVVM Nested Views Pin
Kevin Marois24-Oct-11 8:07
professionalKevin Marois24-Oct-11 8:07 
AnswerWPF MVVM Nested Views - Clarification Pin
Kevin Marois24-Oct-11 8:06
professionalKevin Marois24-Oct-11 8:06 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
SledgeHammer0124-Oct-11 8:23
SledgeHammer0124-Oct-11 8:23 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
Kevin Marois24-Oct-11 8:48
professionalKevin Marois24-Oct-11 8:48 

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.