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