locked
how to add an image in a hub section header

    Question

  • Hi.

    I want to add an Image in a hub section header. Is it possible to add an image with the section header so that like the section header when I click on the image it would also navigate me to that section page ?


    samEE

    Tuesday, April 07, 2015 12:27 PM

Answers

  • Something like this might work for you:

                <HubSection IsHeaderInteractive="True" 
                            DataContext="{Binding Section3Items}" 
                            d:DataContext="{Binding Groups[3], 
                            Source={d:DesignData Source=/DataModel/SampleData.json, Type=data:SampleDataSource}}"
                            Padding="40,40,40,32">
                    <HubSection.Header>
                        <Image Source="Assets/Logo.png"></Image>
                    </HubSection.Header>
    


    http://peted.azurewebsites.net/

    • Marked as answer by Sameel Nawaz Wednesday, April 08, 2015 8:31 PM
    Tuesday, April 07, 2015 4:47 PM