ListView 类

定义

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

[Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._ListViewRenderer))]
public class ListView : Xamarin.Forms.ItemsView<Xamarin.Forms.Cell>, Xamarin.Forms.IElementConfiguration<Xamarin.Forms.ListView>, Xamarin.Forms.IListViewController
type ListView = class
    inherit ItemsView<Cell>
    interface IListViewController
    interface IViewController
    interface IVisualElementController
    interface IElementController
    interface IElementConfiguration<ListView>
继承
属性
实现

注解

以下示例演示了基本用法:

using System;
using System.Collections.Generic;
using Xamarin.Forms;

namespace FormsGallery
{
class ListViewDemoPage : ContentPage
    {
        class Person
        {
            public Person(string name, DateTime birthday, Color favoriteColor)
            {
                this.Name = name;
                this.Birthday = birthday;
                this.FavoriteColor = favoriteColor;
            }

            public string Name { private set; get; }

            public DateTime Birthday { private set; get; }

            public Color FavoriteColor { private set; get; }
        };

        public ListViewDemoPage()
        {
            Label header = new Label
            {
                Text = "ListView",
                FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)),
                HorizontalOptions = LayoutOptions.Center
            };

            // Define some data.
            List<Person> people = new List<Person>
            {
                new Person("Abigail", new DateTime(1975, 1, 15), Color.Aqua),
                new Person("Bob", new DateTime(1976, 2, 20), Color.Black),
                // ...etc.,...
                new Person("Yvonne", new DateTime(1987, 1, 10), Color.Purple),
                new Person("Zachary", new DateTime(1988, 2, 5), Color.Red)
            };

            // Create the ListView.
            ListView listView = new ListView
            {
                // Source of data items.
                ItemsSource = people,

                // Define template for displaying each item.
                // (Argument of DataTemplate constructor is called for 
                //      each item; it must return a Cell derivative.)
                ItemTemplate = new DataTemplate(() =>
                    {
                        // Create views with bindings for displaying each property.
                        Label nameLabel = new Label();
                        nameLabel.SetBinding(Label.TextProperty, "Name");

                        Label birthdayLabel = new Label();
                        birthdayLabel.SetBinding(Label.TextProperty,
                            new Binding("Birthday", BindingMode.OneWay, 
                                null, null, "Born {0:d}"));

                        BoxView boxView = new BoxView();
                        boxView.SetBinding(BoxView.ColorProperty, "FavoriteColor");

                        // Return an assembled ViewCell.
                        return new ViewCell
                        {
                            View = new StackLayout
                            {
                                Padding = new Thickness(0, 5),
                                Orientation = StackOrientation.Horizontal,
                                Children = 
                                {
                                    boxView,
                                    new StackLayout
                                    {
                                        VerticalOptions = LayoutOptions.Center,
                                        Spacing = 0,
                                        Children = 
                                        {
                                            nameLabel,
                                            birthdayLabel
                                        }
                                        }
                                }
                                }
                        };
                    })
            };

            // Accomodate iPhone status bar.
            this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);

            // Build the page.
            this.Content = new StackLayout
            {
                Children = 
                {
                    header,
                    listView
                }
                };
        }
    }
}

构造函数

ListView()

创建并初始化 ListView 类的新实例。

ListView(ListViewCachingStrategy)

使用指定的缓存策略创建并初始化 ListView 类的新实例。

字段

FooterProperty

Footer 属性的后备存储。

FooterTemplateProperty

FooterTemplate 属性的后备存储。

GroupHeaderTemplateProperty

标识 GroupHeaderTemplate 属性。

HasUnevenRowsProperty

标识 HasUnevenRowsProperty 属性。

HeaderProperty

Header 属性的后备存储。

HeaderTemplateProperty

HeaderTemplate 属性的后备存储。

HorizontalScrollBarVisibilityProperty

HorizontalScrollBarVisibility 字段的后备存储。

IsGroupingEnabledProperty

标识 IsGroupingEnabledProperty 属性。

IsPullToRefreshEnabledProperty

IsPullToRefreshEnabled 属性的后备存储。

IsRefreshingProperty

IsRefreshing 属性的后备存储。

RefreshCommandProperty

RefreshCommand 属性的后备存储。

RefreshControlColorProperty

RefreshControlColor 字段的后备存储。

RowHeightProperty

RowHeightProperty 属性的后备存储。

SelectedItemProperty

标识 SelectedItemProperty 属性。

SelectionModeProperty

SelectionMode 属性的后备存储。

SeparatorColorProperty

SeparatorColor 属性的后备存储。

SeparatorVisibilityProperty

SeparatorVisibility 属性的后备存储。

VerticalScrollBarVisibilityProperty

VerticalScrollBarVisibility 字段的后备存储。

属性

AnchorX

获取或设置任何转换的中心点的 X 部分,相对于元素的边界。 这是一种可绑定属性。

(继承自 VisualElement)
AnchorY

获取或设置任何转换的中心点的 Y 部分,相对于元素的边界。 这是一种可绑定属性。

(继承自 VisualElement)
AutomationId

获取或设置允许自动化框架查找此元素并与其交互的值。

(继承自 Element)
Background

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
BackgroundColor

获取或设置将填充 VisualElement 背景的颜色。 这是一种可绑定属性。

(继承自 VisualElement)
Batched

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
Behaviors

获取与此元素关联的 Behavior 列表。 这是一种可绑定属性。

(继承自 VisualElement)
BindingContext

获取或设置对象,该对象包含将被属于此 BindableObject 的绑定属性设定为目标的属性。

(继承自 BindableObject)
Bounds

获取元素的边界。

(继承自 VisualElement)
CachingStrategy

供 Xamarin.Forms 平台内部使用。

class

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 NavigableElement)
ClassId

获取或设置用于标识语义相似元素集合的值。

(继承自 Element)
Clip

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
DisableLayout

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
Dispatcher

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 BindableObject)
EffectControlProvider

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
Effects

应用于此项的效果列表。

(继承自 Element)
FlowDirection

获取或设置布局流方向。

(继承自 VisualElement)
Footer

获取或设置将显示在列表视图底部的字符串、绑定或视图。

FooterElement

供 Xamarin.Forms 平台内部使用。

FooterTemplate

获取或设置要用于格式化数据对象的数据模板,以在列表视图的底部显示。

GestureController

获取视图的手势控制器。

(继承自 View)
GestureRecognizers

与此视图关联的手势识别器的集合。

(继承自 View)
GroupDisplayBinding

获取或设置要用于显示组标头的绑定。

GroupHeaderTemplate

获取或设置组标头的 DataTemplate

GroupShortNameBinding

获取或设置要在分组跳转列表中显示的名称的绑定。

HasUnevenRows

获取或设置一个布尔值,该值指示此 ListView 元素是否具有不均匀的行。

Header

获取或设置将显示在列表视图顶部的字符串、绑定或视图。

HeaderElement

供 Xamarin.Forms 平台内部使用。

HeaderTemplate

获取或设置要用于格式化数据对象的数据模板,以在列表视图的顶部显示。

Height

获取此元素的当前呈现高度。 这是一种只读可绑定属性。

(继承自 VisualElement)
HeightRequest

获取或设置此元素的所需高度替代。

(继承自 VisualElement)
HorizontalOptions

获取或设置 LayoutOptions,它定义元素在布局周期中的布局方式。 这是一种可绑定属性。

(继承自 View)
HorizontalScrollBarVisibility

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

Id

获取可用于通过运行应用程序唯一地标识元素的值。

(继承自 Element)
InputTransparent

获取或设置一个值,该值指示此元素是否应涉及用户交互周期。 这是一种可绑定属性。

(继承自 VisualElement)
IsEnabled

获取或设置一个值,该值指示是否在用户界面中启用此元素。 这是一种可绑定属性。

(继承自 VisualElement)
IsFocused

获取一个值,该值指示当前是否聚焦此元素。 这是一种可绑定属性。

(继承自 VisualElement)
IsGroupingEnabled

获取或设置是否为 ListView 启用分组。

IsInNativeLayout

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsNativeStateConsistent

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsPlatformEnabled

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsPullToRefreshEnabled

获取或设置一个值,该值指示用户是否可以向下轻扫以刷新应用程序。

IsRefreshing

获取或设置一个值,该值指示列表视图当前是否正在刷新。

IsTabStop

获取或设置指明此元素是否包含在选项卡导航中的值。 这是一种可绑定属性。

(继承自 VisualElement)
IsVisible

获取或设置一个值,该值确定此元素是否应属于可视化树的一部分。 这是一种可绑定属性。

(继承自 VisualElement)
ItemsSource

获取或设置用于模板和显示的项的源。

(继承自 ItemsView<TVisual>)
ItemTemplate

获取或设置要应用于 ItemsSourceDataTemplate

(继承自 ItemsView<TVisual>)
LogicalChildren

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
Margin

获取或设置视图的边距。

(继承自 View)
MinimumHeightRequest

获取或设置一个值,该值将替代元素在布局期间请求的最小高度。

(继承自 VisualElement)
MinimumWidthRequest

获取或设置一个值,该值将替代元素在布局期间请求的最小宽度。

(继承自 VisualElement)
Navigation

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 NavigableElement)
NavigationProxy

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 NavigableElement)
Opacity

获取或设置呈现元素时应用于元素的不透明度值。 这是一种可绑定属性。

(继承自 VisualElement)
Parent

获取或设置元素的父元素。

(继承自 Element)
ParentView
已过时。

获取作为 VisualElement 的此元素的最近的上级元素。

(继承自 Element)
Platform
已过时。

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 Element)
RealParent

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
RefreshAllowed

供 Xamarin.Forms 平台内部使用。

RefreshCommand

获取或设置在列表视图进入刷新状态时运行的命令。

RefreshControlColor

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

Resources

获取或设置本地资源字典。

(继承自 VisualElement)
Rotation

获取或设置呈现元素时围绕 Z 轴(仿射旋转)的旋转角度(以度为单位)。

(继承自 VisualElement)
RotationX

获取或设置呈现元素时围绕 X 轴(透视旋转)的旋转角度(以度为单位)。

(继承自 VisualElement)
RotationY

获取或设置呈现元素时围绕 Y 轴(透视旋转)的旋转角度(以度为单位)。

(继承自 VisualElement)
RowHeight

获取或设置一个值,该值表示行的高度。

Scale

获取或设置应用于元素的比例因子。

(继承自 VisualElement)
ScaleX

获取或设置要应用于 X 方向的缩放值。

(继承自 VisualElement)
ScaleY

获取或设置要应用于 Y 方向的缩放值。

(继承自 VisualElement)
SelectedItem

获取或设置 ItemsSource 中的当前选定项。

SelectionMode

获取或设置一个值,用于控制是否可以选择项以及选择多少个项。

SeparatorColor

获取或设置分隔列表项的栏的颜色。

SeparatorVisibility

获取或设置一个值,该值指示分隔符在项之间是否可见。

Style

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 NavigableElement)
StyleClass

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 NavigableElement)
StyleId

获取或设置用于唯一地标识元素的用户定义的值。

(继承自 Element)
TabIndex

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
TemplatedItems

获取模板化项的列表。

(继承自 ItemsView<TVisual>)
TranslationX

获取或设置元素的 X 转换增量。

(继承自 VisualElement)
TranslationY

获取或设置元素的 Y 转换增量。

(继承自 VisualElement)
Triggers

获取与此元素关联的 Trigger 列表。 这是一种可绑定属性。

(继承自 VisualElement)
VerticalOptions

获取或设置 LayoutOptions,它定义元素在布局周期中的布局方式。 这是一种可绑定属性。

(继承自 View)
VerticalScrollBarVisibility

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

Visual

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
Width

获取此元素的当前呈现宽度。 这是一种只读可绑定属性。

(继承自 VisualElement)
WidthRequest

获取或设置此元素的所需宽度替代。

(继承自 VisualElement)
X

获取此元素的当前 X 位置。 这是一种只读可绑定属性。

(继承自 VisualElement)
Y

获取此元素的当前 Y 位置。 这是一种只读可绑定属性。

(继承自 VisualElement)

方法

ApplyBindings()

将绑定应用到 BindingContext

(继承自 BindableObject)
BatchBegin()

表示开始对元素属性进行批更改。

(继承自 VisualElement)
BatchCommit()

表示元素命令批处理结束,且现在应提交命令。

(继承自 VisualElement)
BeginRefresh()

通过将 IsRefreshing 属性设置为 true 进入刷新状态。

ChangeVisualState()

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
ClearValue(BindableProperty)

清除由 SetValueproperty 设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)

清除由 SetValuepropertyKey 标识的属性设置的任何值。

(继承自 BindableObject)
CoerceValue(BindableProperty)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 BindableObject)
CoerceValue(BindablePropertyKey)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 BindableObject)
CreateDefault(Object)

创建项的默认视觉对象表示形式的实例。

CreateDefaultCell(Object)

供 Xamarin.Forms 平台内部使用。

Descendants()

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
EffectIsAttached(String)

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
EndRefresh()

通过将 IsRefreshing 属性设置为 false 退出刷新状态。

FindByName(String)

返回具有指定名称的元素。

(继承自 Element)
Focus()

尝试将焦点设定到此元素上。

(继承自 VisualElement)
GetChildElements(Point)

返回在指定的 point 下可见的子元素。

(继承自 View)
GetDisplayTextFromGroup(Object)

供 Xamarin.Forms 平台内部使用。

GetSizeRequest(Double, Double)
已过时。

返回元素的 SizeRequest。 调用此方法开始布局循环的测量过程。

(继承自 VisualElement)
GetValue(BindableProperty)

返回 BindableProperty 中包含的值。

(继承自 BindableObject)
GetValues(BindableProperty, BindableProperty)
已过时。

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
已过时。

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
InvalidateMeasure()

调用此方法以使此 VisualElement 的布局无效。 引发 MeasureInvalidated 事件。

(继承自 VisualElement)
InvalidateMeasureNonVirtual(InvalidationTrigger)

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsSet(BindableProperty)

如果目标属性存在并且已设置,则返回 true

(继承自 BindableObject)
Layout(Rectangle)

在布局循环中更新元素的边界。

(继承自 VisualElement)
Measure(Double, Double, MeasureFlags)

返回在设备上显示可视元素所需的最小大小。

(继承自 VisualElement)
NativeSizeChanged()

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
NotifyRowTapped(Int32, Cell)

供 Xamarin.Forms 平台内部使用。

NotifyRowTapped(Int32, Cell, Boolean)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

NotifyRowTapped(Int32, Int32, Cell)

供 Xamarin.Forms 平台内部使用。

NotifyRowTapped(Int32, Int32, Cell, Boolean)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

On<T>()

返回此 ListView 的特定于平台的实例,可对其调用特定于平台的方法。

OnBindingContextChanged()

绑定上下文更改时调用的方法。

OnChildAdded(Element)

应用程序开发者可以重写此方法以在添加子级时进行响应。

(继承自 VisualElement)
OnChildRemoved(Element)
已过时。

应用程序开发者可以重写此方法以在删除子级时进行响应。

(继承自 VisualElement)
OnChildRemoved(Element, Int32)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
OnChildrenReordered()

即将发出 ChildrenReordered 事件时调用。 实现此方法可为此事件添加类处理。

(继承自 VisualElement)
OnMeasure(Double, Double)

进行布局测量时调用的方法。

(继承自 VisualElement)
OnParentSet()

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 NavigableElement)
OnPropertyChanged(String)

更改绑定属性时调用的方法。

(继承自 Element)
OnPropertyChanging(String)

从子类调用此方法以通知属性将要发生更改。

(继承自 BindableObject)
OnSizeAllocated(Double, Double)

在布局循环过程中设置元素的大小时调用此方法。 在发出 SizeChanged 事件之前直接调用此方法。 实现此方法可为此事件添加类处理。

(继承自 VisualElement)
OnSizeRequest(Double, Double)
已过时。

提出大小请求时调用的方法。

OnTabIndexPropertyChanged(Int32, Int32)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
OnTabStopPropertyChanged(Boolean, Boolean)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
RemoveBinding(BindableProperty)

删除先前设置的绑定。

(继承自 BindableObject)
RemoveDynamicResource(BindableProperty)

移除先前设置的动态资源

(继承自 Element)
ScrollTo(Object, Object, ScrollToPosition, Boolean)

将 ListView 滚动到 group 中的 item

ScrollTo(Object, ScrollToPosition, Boolean)

将 ListView 滚动到 item

SendCellAppearing(Cell)

供 Xamarin.Forms 平台内部使用。

SendCellDisappearing(Cell)

供 Xamarin.Forms 平台内部使用。

SendRefreshing()

供 Xamarin.Forms 平台内部使用。

SendScrolled(ScrolledEventArgs)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

SetBinding(BindableProperty, BindingBase)

向属性分配绑定。

(继承自 BindableObject)
SetDynamicResource(BindableProperty, String)

将此元素的 BindableProperty 属性设置为通过 DynamicResource 使用提供的键来更新。

(继承自 Element)
SetupContent(Cell, Int32)

应用程序开发者替代此方法以注册列表视图项的事件处理程序。

SetupContent(TVisual, Int32)

在创建时对内容执行任何其他设置。

(继承自 ItemsView<TVisual>)
SetValue(BindableProperty, Object)

设置指定属性的值。

(继承自 BindableObject)
SetValue(BindablePropertyKey, Object)

设置 propertyKey 的值。

(继承自 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
SetValueFromRenderer(BindableProperty, Object)

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
SetValueFromRenderer(BindablePropertyKey, Object)

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
SizeAllocated(Double, Double)

在布局循环过程中调用 SizeAllocated 以指示子树布局的开始。

(继承自 VisualElement)
TabIndexDefaultValueCreator()

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
TabStopDefaultValueCreator()

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 VisualElement)
UnapplyBindings()

不应用所有以前设置的绑定。

(继承自 BindableObject)
Unfocus()

取消设置此元素的焦点。

(继承自 VisualElement)
UnhookContent(Cell)

应用程序开发人员替代此方法,以便为在 SetupContent(Cell, Int32) 中注册的列表视图项取消注册事件处理程序。

UnhookContent(TVisual)

应用程序开发人员替代此方法,以便为在 SetupContent(TVisual, Int32) 中注册的项取消注册事件处理程序。

(继承自 ItemsView<TVisual>)
ValidateItemTemplate(DataTemplate)

如果 template 是模板选择器并且正在保留元素,则返回 false。 否则返回 true

事件

BatchCommitted

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
BindingContextChanged

只要 BindingContext 属性更改就会引发。

(继承自 BindableObject)
ChildAdded

每当将子元素添加到元素时就会发生。

(继承自 Element)
ChildRemoved

每当从元素中删除子元素时就会发生。

(继承自 Element)
ChildrenReordered

重新排序 VisualElement 的子级时发生。

(继承自 VisualElement)
DescendantAdded

每当将子元素添加到元素子树时就会发生。

(继承自 Element)
DescendantRemoved

每当从元素子树中删除子元素时就会发生。

(继承自 Element)
FocusChangeRequested

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
Focused

元素接收焦点时发生。

(继承自 VisualElement)
ItemAppearing

将项的视觉对象表示形式添加到视觉对象布局时发生。

ItemDisappearing

在从视觉对象布局中删除项的视觉对象表示形式时发生。

ItemSelected

选择新项时引发的事件。

ItemTapped

点击项时引发的事件。

MeasureInvalidated

可视元素的布局无效时引发的事件。

(继承自 VisualElement)
PlatformSet
已过时。

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

(继承自 Element)
PropertyChanged

在属性已更改时引发。

(继承自 BindableObject)
PropertyChanging

在属性将要更改时引发。

(继承自 BindableObject)
Refreshing

刷新列表视图时引发的事件。

Scrolled

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

ScrollToRequested

供 Xamarin.Forms 平台内部使用。

SizeChanged

当此元素上的 Width 或 Height 属性的值发生更改时发生。

(继承自 VisualElement)
Unfocused

当元素丢失焦点时发生。

(继承自 VisualElement)

显式接口实现

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
IElementController.SetValueFromRenderer(BindableProperty, Object)

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
IGestureController.CompositeGestureRecognizers

供 Xamarin.Forms 平台内部使用。

(继承自 View)
IItemsView<TVisual>.CreateDefault(Object)

通过使用 item 创建默认 TVisual

(继承自 ItemsView<TVisual>)
IItemsView<TVisual>.SetupContent(TVisual, Int32)

仅限内部使用。

(继承自 ItemsView<TVisual>)
IItemsView<TVisual>.UnhookContent(TVisual)

仅限内部使用。

(继承自 ItemsView<TVisual>)
INameScope.RegisterName(String, Object)

仅限内部使用。

(继承自 Element)
ITemplatedItemsView<TVisual>.ListProxy

此接口供平台呈现器内部使用。

(继承自 ItemsView<TVisual>)
ITemplatedItemsView<TVisual>.TemplatedItems

此接口供平台呈现器内部使用。

(继承自 ItemsView<TVisual>)
IVisualElementController.EffectiveFlowDirection

获取平台上元素的有效可视流方向,考虑区域设置和逻辑流设置。

(继承自 VisualElement)
IVisualElementController.InvalidateMeasure(InvalidationTrigger)

此方法仅供内部使用。

(继承自 VisualElement)

扩展方法

AbortAnimation(IAnimatable, String)

停止动画。

Animate(IAnimatable, String, Action<Double>, Double, Double, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

Animate(IAnimatable, String, Action<Double>, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

Animate(IAnimatable, String, Animation, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

Animate<T>(IAnimatable, String, Func<Double,T>, Action<T>, UInt32, UInt32, Easing, Action<T,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

AnimateKinetic(IAnimatable, String, Func<Double,Double,Boolean>, Double, Double, Action)

设置指定参数并启动动态动画。

AnimationIsRunning(IAnimatable, String)

返回一个布尔值,该值指示 handle 指定的动画是否正在运行。

Batch(IAnimatable)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

创建绑定并将其应用到属性。

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)
已过时。

通过表达式创建并应用绑定。

SetOnAppTheme<T>(BindableObject, BindableProperty, T, T)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

FindByName<T>(Element, String)

返回包含 element 的作用域中名称为 name 的类型 T 的实例。

FindNextElement(ITabStopElement, Boolean, IDictionary<Int32,List<ITabStopElement>>, Int32)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

GetSortedTabIndexesOnParentPage(VisualElement)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

GetTabIndexesOnParentPage(ITabStopElement, Int32)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

FadeTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它执行 opacitylengtheasing 参数描述的淡化。

LayoutTo(VisualElement, Rectangle, UInt32, Easing)

返回一个任务,它将 view 指定的 VisualElement 的边界简化为 bounds 参数指定的矩形。

RelRotateTo(VisualElement, Double, UInt32, Easing)

从当前旋转将 view 指定的 VisualElement 旋转为 drotation

RelScaleTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它将 view 指定的 VisualElement 从其当前比例缩放到 dscale

RotateTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它执行 rotationlengtheasing 参数描述的旋转。

RotateXTo(VisualElement, Double, UInt32, Easing)

返回将 Y 轴倾斜 opacity 的任务,花费时间 length 并使用 easing

RotateYTo(VisualElement, Double, UInt32, Easing)

返回将 X 轴倾斜 opacity 的任务,花费时间 length 并使用 easing

ScaleTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它将 view 指定的 VisualElement 缩放到绝对比例因子 scale

ScaleXTo(VisualElement, Double, UInt32, Easing)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

ScaleYTo(VisualElement, Double, UInt32, Easing)

以垂直列表的形式显示数据集合的 ItemsView<TVisual>

TranslateTo(VisualElement, Double, Double, UInt32, Easing)

将元素 TranslationX 和 TranslationY 属性从其当前值动画处理为新的值。 这可确保输入布局与视觉对象布局处于同一位置。

HasVisualStateGroups(VisualElement)

如果 element 具有与之关联的一个或多个可视状态组,则返回 true。 否则返回 false

适用于