2 posts, 0 answers
  1. Craig Neblett
    Craig Neblett avatar
    9 posts
    Member since:
    Nov 2005

    Posted 23 Nov 2015 Link to this post

    How would you specify a custom DataTemplate in XAML?
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 25 Nov 2015 Link to this post

    Hi Craig,

    The RadListView component is designed to use different cells in its ItemTemplate. In other words users should use one of the classes described in our Cells article. Here is a sample definition of the RadListView component:

    <telerikDataControls:RadListView ItemsSource="{Binding FeaturedExamplesList}"
        <listView:ListViewItemStyle BackgroundColor="Transparent" BorderWidth="0"/>
        <listView:ListViewItemStyle BackgroundColor="#E5EDF3" BorderWidth="0"/>
        <listView:ListViewItemStyle BackgroundColor="#E5EDF3" BorderWidth="0"/>
        <listView:ListViewLinearLayout Orientation="Horizontal" HorizontalItemSpacing="0"/>
              <StackLayout Padding="16, 0, 0, 0" StackLayout.Spacing="8">
                <Image Source="{Binding ImageSourceUri}"
                <Label Text="{Binding Title}"
                    <OnPlatform x:TypeArguments="x:Double"
    I hope this information is helpful. Please do not hesitate to contact us if you encounter any other issues.

    Pavel R. Pavlov
    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 Feedback Portal and vote to affect the priority of the items
Back to Top