我们无法在Xamarin.Forms ListView Control中找到以下事件。
Error:
'xamarin.forms.ListView' does not contain definition for '**IsRefreshing**'
'xamarin.forms.ListView' does not contain definition for '**IsPullToRefreshEnabled**'
注意:我们使用的是Xamarin Latest Version (Xamarin 4.0.0.1717)。
我正在使用一个基于SQLLite的小型数据库构建一个应用程序。这在Windows上效果很好。现在,我正试图让它与Xamarin表单(可移植)一起工作。建立和填写表格的工作正在进行中。现在,我试图在ListView中显示表的元素,但在ListView中获取表注释的项时遇到了问题。“我的表注”已设置,并包含两项内容:
public class Notes
{
//The Id property is marked as the Primary Key
[SQLite.PrimaryKey, SQLite.AutoIncrement]
public int Id { get; set; }
publ
我已经在一个UWP应用程序工作了相当一段时间。我们最近决定过渡到Xamarin,这样我们就可以轻松地支持Android和UWP。我在为我们的代码库设置一个PCL时没有任何问题。现在,当我试图重写Xamarin.Forms的UI时,我遇到了一些噩梦。我试图完成一些相对简单的事情,我肯定是做错了什么,但是,我想不出是什么。
我想显示一个listView。以下是XAML:
<ContentPage.Content>
<StackLayout>
<Label Text="This is the bill page."
在Xamarin.Forms 2.3.4.192-pre2中,我创建了一个自定义ViewCell,它使用网格作为Xamarin.Forms.ListView的DataTemplate。
当加载ListView时,它会抛出System.ArgumentException: NaN is not a valid value for width。
我已经找到了,但是我不知道为什么宽度是NaN
错误
System.ArgumentException: NaN不是宽度的有效值
Xamarin.Forms.VisualElement.GetSizeRequest(double (双宽,双高) Xamar
我正在尝试实现导航抽屉/母版详细信息,但得到了这个错误,但是我看到我的代码还好,我甚至将我的Xamarin.Forms升级到2.4,但仍然面临这个错误:
local:MasterPage not found in xmlns clr-namespace:Diabetics;assembly=Diabetics
完整错误列表:
Xamarin.Forms.Xaml.XamlParseException: Position 7:6. Type local:MasterPage not found in xmlns clr-namespace:Diabetics;assembly=Diabetics
我有以下示例应用程序代码:
App.cs (入境点)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace App1
{
public class ListItem
{
public string ItemText { get; set; }
public string ItemDetail { get; set; }
public string P
我正在努力自己找到答案,使用之前的Stackoverflow帖子,youtube和谷歌搜索。我正在尝试学习如何在xamarin表单中使用SQLite。
解决方案连接:
using SQLite;
namespace TestSQLite
{
public interface IDatabaseConnection
{
SQLiteAsyncConnection GetConnection();
}
}
安卓专用连接(iOS相同)
using SQLite;
using System.IO;
using TestSQLite;
using Xamarin
我正在做一个预订应用程序,当用户刷新ListView时,它应该连接到远程数据库以获得所有预订并更新ListView。 我的onAppearing方法中有代码 我尝试将以下代码添加到刷新绑定中,但没有成功: ItemsPage ip = new ItemsPage();
ArrayList reservations = new ArrayList();
reservations = await ip.CheckReservations(ItemsPage.currentDate);
ItemsPage.reservations = re
定制Xamarin.Forms.ListView中的几个问题
任务:我需要实现一个控件,用于在GridView中显示项目,就像在android上一样。
问题的本质并试图实现它:我创建了从GridListBox Xamarin.Forms.ListView继承的类Xamarin.Forms.ListView。下一个我要创建的是Xamarin.Forms.Platform.Android.ListViewRenderer,例如GridListBoxRenderer
我的GridListBox:
public class GridListBox : ListView
{
pu