Hello I have the following XAML:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="BNBApp.Productos.frmExtracto"
xmlns:local="clr-namespace:BNBApp;assembly=BNBApp"
Title="Extract">
<StackLayout>
<Label Text="Choose an Account"/>
<Picker x:Name="pckCuentas" Title="Choose an Account" ></Picker>
<StackLayout>
<ListView x:Name="lsvMovimientos" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Frame HasShadow="True" OutlineColor="Silver">
<StackLayout>
<Label Text="{Binding Descripcion}"></Label>
<StackLayout Orientation="Horizontal">
<Label Text="01/01/2015"></Label>
<Label Text="12:59:21"></Label>
<Label Text="One"></Label>
<Label Text="Two"></Label>
</StackLayout>
</StackLayout>
</Frame>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</StackLayout>
</ContentPage>
I tried it on an Android device and works perfectly. When I test Windows Phone (device or emulator) above shows only the FRAME and all inside empty.
The code with which fill it is:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace BNBApp.Productos
{
public partial class frmExtracto : ContentPage
{
public class TipoMovimiento
{
public string Descripcion { get; set; }
}
public static List<TipoMovimiento> Movimientos = new List<TipoMovimiento>();
public frmExtracto()
{
InitializeComponent();
for (int i = 0; i < 30; i++)
{
Movimientos.Add(new TipoMovimiento { Descripcion = "Debit Transaction " + i.ToString() });
}
lsvMovimientos.IsPullToRefreshEnabled = false;
lsvMovimientos.ItemsSource = Movimientos;
}
}
}
I think the problem is the NAMESPACE for some reason can't bind, but I don't know how to fix this.
Could someone help me.