We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SfTileView is not showing any data

Hi,

I have followed the example mentioned in the http://help.syncfusion.com/wp8  for Tile View. Nothing is displaying in the UI. Then I exactly copy& pasted the code available in the above link. Project is successfully build but no data is showing. Did I miss anything?

  <control:SfTileView Height="400" Width="400" Grid.Row="1"
                       Visibility="Visible"        Orientation="Horizontal"
                                ItemsSource="{Binding Employees}" 
                                MinimizedItemsOrientation="Right">
            <control:SfTileView.ItemContainerStyle>
                <Style TargetType="control:SfTileViewItem">
                    <Setter Property="HorizontalAlignment" Value="Stretch"/>
                    <Setter Property="VerticalAlignment" Value="Stretch"/>
                    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                    <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                </Style>
                </control:SfTileView.ItemContainerStyle>
                <control:SfTileView.ItemTemplate>
                    <DataTemplate>
                        <Border Background="LightBlue">
                            <TextBlock Text="{Binding Name}"
                                       FontSize="14" Margin="8" Foreground="White"
                                       HorizontalAlignment="Stretch"/>
                        </Border>
                    </DataTemplate>
                </control:SfTileView.ItemTemplate>

                <control:SfTileView.MaximizedItemTemplate>
                    <DataTemplate>
                        <Border Background="LightBlue">
                            <TextBlock Text="{Binding Description}"
                                           Foreground="White" FontSize="18"/>
                        </Border>
                    </DataTemplate>
                </control:SfTileView.MaximizedItemTemplate>
            </control:SfTileView>

public partial class Test : PhoneApplicationPage
    {
        private List<Employee> employees;

        public Test()
        {
            InitializeComponent();
            Employees = new List<Employee>();

            Employees.Add(new Employee() { Name = "James", Description = "Description about James" });

            Employees.Add(new Employee() { Name = "Linda", Description = "Description about Linda" });

            Employees.Add(new Employee() { Name = "Carl", Description = "Description about Carl" });

            Employees.Add(new Employee() { Name = "Niko", Description = "Description about Niko" });
        }
        public class Employee
        {
            public string Name { get; set; }

            public string Description { get; set; }
        }

        public List<Employee> Employees
        {
            get { return employees; }

            set { employees = value; }
        }

    }

Please help

1 Reply

SB Suresh B Syncfusion Team July 14, 2014 09:44 AM UTC

Hi Rajeev,

Thanks for using Syncfusion Products.

We request you to follow the incident 127273 for this query.

Incident link: http://www.syncfusion.com/support/directtrac/incidents/127273

Please let us know if you have any queries.

Thanks,
Suresh B


Loader.
Live Chat Icon For mobile
Up arrow icon