image in Tileview

2 posts, 0 answers
  1. Rick Mueller
    Rick Mueller avatar
    103 posts
    Member since:
    Feb 2010

    Posted 05 Oct 2010 Link to this post

    Is possible to put a image in the Item Header?

    Regards,
    Rick Mueller
  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 07 Oct 2010 Link to this post

    Hello Rick Mueller,

    You can insert an image in the TileViewItem's header by modifying its HeaderTemplate.
    The code snippet below shows one way to achieve this. Please let me know if that is what you are looking for :
               <telerik:RadTileView>
               <telerik:RadTileViewItem Header="tile one">
                   <telerik:RadTileViewItem.HeaderTemplate>
                       <DataTemplate>
                           <StackPanel Orientation="Horizontal">
                               <Image Source="Icon.png" Height="32"/>
                               <ContentPresenter Content="{Binding}" HorizontalAlignment="Right"/>
                           </StackPanel>
                       </DataTemplate>
                   </telerik:RadTileViewItem.HeaderTemplate>
               </telerik:RadTileViewItem>
           </telerik:RadTileView>

    Greetings,
    Alex Fidanov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top